Revise text in document