fixed non-terminating bug in parse_strings (terminates with errors though).