remove trailing ws on save