def capitalcase(string: str) -> str:
    """Capitalize the first letter of a string.

    The casing of all the other letters will remain unaltered, e.g.,
    ``"fooBar"`` → ``"FooBar"``.

    Args:
        string (:obj:`str`):
            The string to capitalize.

    Returns:
        :obj:`str`: The capitalized string.
    """
    if not string:
        return ""
    return f"{string[0].upper()}{string[1:]}" if string else ""