trim whitespace on save