def _normalize_string(self, text):
conversion = {<EOL>'<STR_LIT>': '<STR_LIT:U+0020>',<EOL>'<STR_LIT>': '<STR_LIT:U+0020>',<EOL>'<STR_LIT>': '<STR_LIT:->',<EOL>'<STR_LIT>': '<STR_LIT:->',<EOL>'<STR_LIT>': '<STR_LIT:->',<EOL>'<STR_LIT>': '<STR_LIT:->',<EOL>'<STR_LIT>': '<STR_LIT:->',<EOL>'<STR_LIT>': '<STR_LIT:->',<EOL>}<EOL>for find, replace in six.iteritems(conversion):<EOL><INDENT>text = re.sub(find, replace, text, flags=re.UNICODE)<EOL><DEDENT>return text<EOL>
Prepares incoming text for parsing:
        removes excessive spaces, tabs, newlines, etc.