Deprecated. Don't use for new development and try to migrate existing uses.
This function replaces all blocks of continuous whitespace within a string with a single space character. Also, any leading and trailing whitespace is trimmed.
List of ASCII-characters considered whitespace:
9 Horizontal tab
10 New line
11 Vertical tab
12 Form feed
13 Carriage return
The trimmed string