def mute_string(text):
    # String modifiers (e.g. u or r)
    start = text.index(text[-1]) + 1
    end = len(text) - 1
    # Triple quotes
    if text[-3:] in ('"""', "'''"):
        start += 2
        end -= 2
    return text[:start] + 'x' * (end - start) + text[end:]
Replace contents with 'xxx' to prevent syntax matching.
dataset/ETHPy150Open kivy/plyer/plyer/tools/pep8checker/pep8.py/mute_string