Trim String
The Trim String node is used to remove any leading and trailing whitespace characters from a string. Whitespace characters include spaces, tabs, and newlines that appear before the first non-whitespace character or after the last non-whitespace character in a string.
Properties Panel
General
Field | Description | Required |
Node name | true | |
Variable Name | Variable name containing string which you want to trim | true |
Example
Let's say you want to remove all the leading and trailing whitespaces in @wscos@
stored in $.variables.password
.
Set
Variable Name
to$.variables.password
.
It will convert the string in place and store in the same variable. If variable $.variables.password
doesn't exist, it'll raise an error.
Returns
This node does not return any value, but stores the trimmed string in the same variable provided in <Variable Name>
in the flow context.
Last updated