parameters: (text)
return_statement: return text[:start] + 'x' * (end - start) + text[end:]
docstring: Replace contents with 'xxx' to prevent syntax matching.
  
      >>> mute_string('"abc"')
      '"xxx"'
      >>> mute_string("'''abc'''")
      "'''xxx'''"
      >>> mute_string("r'abc'")
      "r'xxx'"
docstring_summary: Replace contents with 'xxx' to prevent syntax matching.
docstring_tokens: Replace contents with xxx to prevent syntax matching .
function: def mute_string(text):
      """Replace contents with 'xxx' to prevent syntax matching.
  
      >>> mute_string('"abc"')
      '"xxx"'
      >>> mute_string("'''abc'''")
      "'''xxx'''"
      >>> mute_string("r'abc'")
      "r'xxx'"
      """
      # 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:]
function_tokens: 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 : ]