Removes extra spaces from a given string.
The input string to remove extra spaces from.
The modified string with extra spaces removed.
Removes extra spaces from a given string.