clean up text formatting