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.
1378

Inputs/Outputs

datatype_icon

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

datatype_icon

string

String on which the node operates.

datatype_icon

trimmed string

Input string with whitespace removed.