Skip to main content
The StringTrim node removes whitespace characters (such as spaces, tabs, and newlines) 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 whitespace.

Inputs

ParameterDescriptionData TypeRequiredRange
stringThe text string to process. Supports multiline input.STRINGYes-
modeSpecifies 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.COMBOYes”Both"
"Left"
"Right”

Outputs

Output NameDescriptionData Type
outputThe trimmed text string with whitespace removed according to the selected mode.STRING
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): b7d0694b752f3017a5f8ee9a6ca1d88260f761576b5960f2cb210e34efb09d18