def replace_multiple_spaces()

in route.py [0:0]


def replace_multiple_spaces(text):
    return re.sub(r'\s{2,}', ' ', text)