word wrap and clean up