def simplify_whitespace(name):
    if name:
        return ' '.join(name.split())
    return name
Strip spaces and remove duplicate spaces within names
dataset/ETHPy150Open edgewall/trac/trac/ticket/model.py/simplify_whitespace