Clean up text format.