Skip to main content

$$trim

Removes whitespaces from sides of string

Usage​

"$$trim([type]):{input}"

Returns​

string

Arguments​

ArgumentTypeValuesRequired / Default ValueDescription
type*EnumBOTH/START/END/INDENT/JAVABOTHType of trimming

* Different Types of trimming​

TypeJava function
BOTH (default)String::strip()
STARTString::stripLeading()
ENDString::stripTrailing()
INDENTString::stripIndent()
JAVAString::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>