string parsing performance improvements