Trim whitespace on save