Top  | Previous | Next

Strings / trim

trim(string)

Takes the argument string and trims of any leading and/or trailing whitespace, returning the result.

 

trim("Hello Dave  ")

... returns "Hello Dave"

 

trim(" Goodbye.")

... returns "Goodbye."