<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def escape_string(text):
 """Remove problematic characters. Parameters text A string with potentially problematic characters. Returns ------- string The text with characters removed. Examples ------- True """

    if text is None:
        return text


    TO_REMOVE = [r'&', r'%', r'$', r'#', r'_', r'{', r'}',
                 r'~', r'^', r'\\']

    for char in TO_REMOVE:
        text = text.replace(char, '')
    return text