Skip to main content
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
The StringTrim node removes whitespace characters from the beginning, end, or both sides of a text string. You can choose to trim from the left side, right side, or both sides of the string. This is useful for cleaning up text inputs by removing unwanted spaces, tabs, or newline characters.

Inputs

ParameterData TypeRequiredRangeDescription
stringSTRINGYes-The text string to process. Supports multiline input.
modeCOMBOYes”Both"
"Left"
"Right”
Specifies which side(s) of the string to trim. “Both” removes whitespace from both ends, “Left” removes from the beginning only, “Right” removes from the end only.

Outputs

Output NameData TypeDescription
outputSTRINGThe trimmed text string with whitespace removed according to the selected mode.