optimized ParseString further.  now using a table lookup since that's
about 30% faster.