$$trim
Removes whitespaces from sides of string
Usage​
{
"$$trim": /* String to trim */,
"type": "BOTH" /* or START / END / INDENT / JAVA */
}
"$$trim([type]):{input}"
note
Concrete values in the usage example are default values.
Returns​
string
Arguments​
Argument | Type | Values | Required / Default Value | Description |
---|---|---|---|---|
Primary | string | Yes | String to trim | |
type | enum | BOTH / START /END /INDENT /JAVA | BOTH | Type of trimming |
* Different Types of trimming​
Type | Java equivalent function |
---|---|
BOTH (default) | String::strip() |
START | String::stripLeading() |
END | String::stripTrailing() |
INDENT | String::stripIndent() |
JAVA | String::trim() |