def preprocess(polymer: str, char: str) ->str:
    """
    Remove all occurrences of the char in the polymer, regardless of case.
    char is lowercase
    """
    new = polymer.replace(char, '')
    new = new.replace(char.upper(), '')
    return new