Made DeleteTrailingWhitespace automatic.