Improved text formatting