- sorted_expected = ''.join(sorted(re.findall(r'\w+|\W+', expected.strip())))
- sorted_actual = ''.join(sorted(re.findall(r'\w+|\W+', actual.strip())))
+ sorted_expected = "".join(sorted(re.findall(r"\w+|\W+", expected.strip())))
+ sorted_actual = "".join(sorted(re.findall(r"\w+|\W+", actual.strip())))