import re


def cleanup_translation(input_str):
    """Cleans a translation for identity comparison.
    
    Removes superfluous whitespace.
    
    """
    whitespace = re.compile('\s{2,}')
    cleaned_str = whitespace.sub(' ', input_str)
    return cleaned_str