removing trailing whitespace on save