def char_mod(c, c_del, c_double):
    """Takes a character `c` and either doubles or removes it"""
    
    if c == c_del:
        return ""
    
    if c == c_double:
        c = c+c
        return c
    
    return c