clean up some text formatting