Trim (string [, boolNewlinesAndTabsToo])

Result Type: Text

Definition: Returns string with leading and trailing spaces removed. From v8.1.5 you can pass true for the optional second parameter to also trim newlines and tabs).

Examples:  Trim(" Bang! Bang! ")

returns “Bang! Bang!”.

See Also:

Dice: Get a subcomponent of a delimited tabular string

Head: Get some elements from the start of a delimited string

Left: Get characters from the start of a string

Mid: Get characters from the middle of a string

Regex_Match: Test whether a string matches a regular expression

Regex_Replace: Replace text in a string using a regular expression

Replace: Replace matching text in a string with new text

Right: Get characters from the end of a string

Slice: Get a component of a delimited string

Tail: Get some elements from the end of a delimited string