speed up process text a bit
Merge pull request #17 from salimane/pr_small_speedup

speed up process_text a bit