def match_tag_to_name(name, mapping):
    """
    Try to match given name to mergefield tag defined in mapping dict
    Not case sensitive
    :param name: str
    :param mapping: dict
    :return: str: Tag
    """
    for tag, fieldname in mapping.items():
        if str(name).lower() == str(fieldname).lower():
            return tag
