Added testcase for short string speed test
Optimized used of regexes
Optimized parser construction