TRIM
Text

Removes all spaces from text except for single spaces between words

Syntax:

=TRIM(text)

Example:

=TRIM("  Hello   World  ")