def _massage_school_name(school_name: str) -> str:
    """Given a school name, massage the text for various peculiarities.

    * Replace the trailing dot of school names like Boise St.
    * Handle "Tourney Mode" where school names have their seed in the name.
    """

    # Replace the trailing dot in `Boise St.` so right-justified text looks better.
    # ... trust me, it makes a difference.
    school_name = school_name.replace(".", "")

    # Who knew! During the NCAA tourney season KenPom puts the tourney seed into
    # the school name. So, while text_items[1] will be "Gonzaga" most of the year,
    # during (and after, till start of next season) text_items[1] will be
    # "Gonzaga 1" since they're a #1 seed.

    # convert "NC State 1" to ["NC", "State", "1"]
    name_candidate = school_name.split(" ")
    try:
        # Is the last element a number?
        int(name_candidate[-1])

        # Convert back to a string, minus the trailing number
        school_name = " ".join(name_candidate[:-1])
    except ValueError:
        pass
    return school_name