File size: 110 Bytes
272199f
 
1
2
3
def normalize_name(name: str) -> str:
    return " ".join(part.capitalize() for part in name.strip().split())