def county_index(county: str) -> str:
    """
    Transform a string into a form used to index something by county.

    Args:
        county (str): Name of county
    Returns:
        (str): Transformed name to be used as a dict index.
    """
    return str(county).strip().upper().replace(' COUNTY', '')