trim() Function

Removes all unnecessary spaces from the text. Only single spaces between words are considered necessary.

Syntax

trim( text )

text: (Text) The string of text from which unnecessary spaces are to be removed.

Returns

Text

Examples

You can experiment with this function in the test box below.

Test Input

trim(" this text needs trimming ") returns this text needs trimming

FEEDBACK