Trim diffs before comparing them.