Trim trailing whitespace on save