def rm_csv_tag(csv: str, rm_value: str):
    """Given a csv string, returns the string with matching value removed.
    """
    tags = csv.split(',')
    return ','.join(filter(lambda x: x != rm_value, tags))
