Rewrote string parser. Should compile. Needs testing.