$$trim
Removes whitespaces from sides of string
Usage​
"$$trim([type]):{input}"
Returns​
string
Arguments​
Argument | Type | Values | Required / Default Value | Description |
---|---|---|---|---|
type * | Enum | BOTH /START /END /INDENT /JAVA | BOTH | Type of trimming |
* Different Types of trimming​
Type | Java function |
---|---|
BOTH (default) | String::strip() |
START | String::stripLeading() |
END | String::stripTrailing() |
INDENT | String::stripIndent() |
JAVA | String::trim() |
Examples​
Input
Definition
Output
" hello "
"$$trim:$"
"hello"
" hello "
"$$trim(START):$"
"hello "
" hello "
"$$trim(END):$"
" hello"
Input (String)
Definition
Output
<root>
<hello />
</root>
"$$trim(INDENT):$"
<root>
<hello />
</root>