Fix text formatting issues