import re


def text_cleanup(text: str) -> str:
    """
    A simple text cleanup function that strips all new line characters and
    substitutes consecutive white space characters by a single one.
    :param text: Input text to be cleaned.
    :return: The cleaned version of the text
    """
    text.replace('\n', '')
    return re.sub(r'\s{2,}', ' ', text)