import { compactWhitespace } from "https://deno.land/x/30_seconds_of_typescript@v1.0.1/util.ts";
Returns a string with whitespaces compacted.
Use String.prototype.replace()
with a regular expression to replace all occurrences of 2 or more whitespace characters with a single space.