The trim(...) function has only one variation, not counting syntax variations. It makes a copy of a String value omitting any spaces, tabs, carriage returns, line feeds or other control characters at the beginning or end of the original.

Syntax:
trim( source-string )
source-string.trim()

Parameter Description
source-string

The String from which to copy.