/
trim

trim



Function: trim()

Removes leading and trailing white spaces from a string, returning the cleansed string.

Syntax

trim(string)

ArgumentTypeDescription
stringStringThe string to be cleansed.

Examples

trim(" ABCDEF ")

Returns "ABCDEF".

See Also

Related content

Regular Expressions
Regular Expressions
Read with this
trim
trim
More like this
replaceFirst
replaceFirst
Read with this
trim
trim
More like this
split
split
Read with this
trim
More like this