trim()

The trim() function removes whitespaces (' ', '\t', '\r', '\n') from the beginning and end of a string.

Syntax

trim(expr)

Example

trim('  gwc  ')

produces

'gwc'