TrimWhitespace Function
The TrimWhitespace function removes leading, trailing, and duplicate whitespace from a string.
Syntax
TrimWhitespace(value)
The TrimWhitespace function removes leading, trailing, and duplicate whitespace from a string.
Arguments
value
String - A text value.
Remarks
- Whitespace characters are space, tab, carriage return, line feed, and page break.
Example:
TrimWhitespace(" The Mouse That Roared "); // returns "The Mouse That Roared"