Added preference for stripping trailing whitespace