def clean_reg_name(reg, list):
    """
    Clean the name of the registers by removing any characters contained in
    the inputted list.
    """
    for char in list:
        reg = reg.replace(char, '')

    return reg