Removes whitespace from both ends of a string.
The string to trim.
The trimmed string.
Removes leading whitespace from a string.
The string to trim.
The string with leading whitespace removed.
Removes trailing whitespace from a string.
The string to trim.
The string with trailing whitespace removed.
Trims the string and replaces sequences of whitespace with a single space.
The string to normalize.
The string with normalized whitespace.
String trimming utilities. Trims whitespace from a string (both sides by default) with methods for leading and trailing and normalizing whitespace.