cleaning up text and formatting