import re


def clean_spaces(text: str) -> str:
    """Clean spaces in text (replace all space sequences with single space)
    :param text: str, input text
    :return: str, output text
    """
    return re.sub(' +', ' ', text)