Trim Whitespace
- Updated2023-02-17
- 2 minute(s) read
Trim Whitespace
Removes all ASCII whitespace, such as spaces, tabs, carriage returns, and linefeeds, from the beginning, end, or both ends of the input string.
Note This node does not remove double-byte characters.
Inputs/Outputs

location
Value that determines whether to remove whitespace from the beginning, end, or both ends of the input string.
| both | 0 | Removes whitespace from both ends of the input string. |
| start of string | 1 | Removes whitespace from the start of the input string. |
| end of string | 2 | Removes whitespace from the end of the input string. |
Default value: both

string
String on which the node operates.

trimmed string
Input string with whitespace removed.