def scan_type_from_header(h: str) ->str:
    """
    Extract the scan type from the header of filter string

    :param h: header or filter string
    :return: Scan type (e.g. full or sim)
    """
    if ' full ' in h.lower():
        return 'Full'
    elif ' sim ' in h.lower():
        return 'SIM'
    else:
        return None
