import re


def uppercase_school_categories(name):
    """Adjusts school names by certain conventions

    Changes Hs -> HS and Es -> ES in school name
    as well as handles some specific cases.

    Parameters
    ----------
    name : str
        School name which should be harmonized.

    Returns
    -------
    str
        Modified school name
    """
    name = re.sub('\sHs(?![A-Za-z0-9])', ' HS', name)
    name = re.sub('\sEs(?![A-Za-z0-9])', ' ES', name)
    name = re.sub('^Cics\s', 'CICS ', name)
    name = re.sub('^Yccs\s', 'YCCS ', name)
    return name