import re


def clean_name(name: str) -> str:
    """
    Bring the name into a standard format by replacing multiple spaces and characters
    specific for German language
    """
    result = re.sub(r"\s+", " ", name)
    return (
        result.replace("ß", "ss")
        .lower()
        .replace("ä", "ae")
        .replace("ü", "ue")
        .replace("ö", "oe")
    )