Further optimized text parser