Add trim trailing white space before diff feature