def catwalk(text):
    """
    Replace multiple spaces in a string with a single space.

    :type text: string
    :param text: The text to fix.

    >>> catwalk("this  is    a long  sentence")
    'this is a long sentence'
    """

    # Return the fixed version
    return ' '.join(text.split())