def convert_event_name(name: str) -> str:
    """Strips and capitalizes a string.

    This function takes a string input and, if the string length is larger than 1,
    capitalized the string and strips leading/trailing whitespaces.

    Args:
        name: Any string of any length.

    Returns:
        str: Capitalized and stripped string.

    """
    if len(name) == 0:
        return "Generic Event"
    return name.title().strip()