def process_string(string: str) -> str:
	"""Change escape sequences to the chars they match
	ex: process_string("\\\\n") -> "\\n\""""
	replacements = [
		("\\\\", "\x00"),
		("\\n", "\n"),
		("\\t", "\t"),
		("\\r", "\r"),
		('\\"', '\"'),
		("\\'", "'"),
		("\x00", "\\"),
	]
	for search, replace in replacements:
		string = string.replace(search, replace)
	return string