Correction of text errors