import re


def squash_whitespace_to_spaces(_s: str) -> str:
    """Squashes all consecutive whitespace characters into a single space character"""
    return re.sub(pattern=r"\s+", repl=r' ', string=_s)