def format_name(name: str) -> str:
    """Formats a string for displaying to the user

    Examples
    --------
    >>> format_name("manage_messages")
    'Manage Messages'
    >>> format_name("some_name")
    'Some Name'

    Parameters
    ----------
    name : str
        the raw name

    Returns
    -------
    str
        the formatted name
    """
    return name.replace("_", " ").title().strip()