def ms_type_from_header(h: str) ->str:
    """
    Extract the ms type from header or filter string

    :param h: header or filter string
    :return: ms type (e.g. FTMS and ITMS)
    """
    return h.split(' ')[0]
