webCOMAND

#LTRIM

Strip whitespace (or other characters) from the beginning of a string.

Prototype

#LTRIM($string, $characters = " \t\n\r\0\x0B")

Parameters

  • string - The string that will be trimmed.
  • characters - Optional custom characters to strip in the form of a string.

Return

Returns the trimmed string.

Example

#/ Trimmed: [This is some text. ]
#LOCAL($Text, " This is some text. ")
Trimmed: [#LTRIM($Text)]

#/ Trimmed: [his is some text.]
#LOCAL($Text, "This is some text.")
Trimmed: [#LTRIM($Text, ".T")]