automatically remove all trailing whitespace before saving