Removes all unnecessary spaces from the text. Only single spaces between words are considered necessary.
trim( text )
text: (Text) The string of text from which unnecessary spaces are to be removed.
Text
trim(" this text needs trimming ")
returns this text needs trimming