import re


def remove_duplicated_whitespaces(whitespaced: str) -> str:
    """
    Clean up an input string out of any number of repeated whitespaces.

    :param whitespaced:
    :return:
    """
    cleaner = re.compile(r"\s+")
    return cleaner.sub(" ", whitespaced)