Built-in Functions → trim

trim() is a string function that returns its string argument without any leading or trailing whitespace.

Signature

trim(string exp)

Returns

string

Example

trim(" Hello Cleveland ")

This example returns the string "Hello Cleveland".