correcting pre-formatted text