Clean up text formatting