correction of text-strings