removeWhitespace

Trims and replaces consecutive whitespace characters with a single space.

Description

static removeWhitespace()

This includes tabs and newline characters, as well as multibyte whitespace such as the thin space and ideographic space.

Return Value

static
Trimmed and condensed whitespace.