Rewrote string parser.