Removed an unnecessary loop - it kills performance on large texts.