def ucfirst(word: str) -> str:
    """Capitalize the first letter of a word (while leaving the rest alone, unlike ``str.capitalize``)"""
    return '' if len(word) == 0 else (word[0].upper() + word[1:])