def prettify(name):
    """Properly capitalize a name
    
        >>> prettify("edgar ATHELING")
        "Edgar Atheling"
    """
    clean = []
    for word in name.split():
        capitalized = word[0].upper() + word[1:].lower()
        clean.append(capitalized)
    return " ".join(clean)