Uses `String.prototype.replace()` with a regular expression to replace any and all occurrences of whitespace characters with a empty string.