def _escape_str_id(id_str):
for c in ("<STR_LIT:'>", '<STR_LIT:">'):<EOL><INDENT>if id_str.startswith(c) and id_str.endswith(c)and id_str.count(c) == <NUM_LIT:2>:<EOL><INDENT>id_str = id_str.strip(c)<EOL><DEDENT><DEDENT>for char, escaped_char in _renames:<EOL><INDENT>id_str = id_str.replace(char, escaped_char)<EOL><DEDENT>return id_str<EOL>
make a single string id SBML compliant