add auto strip trailing whitespace