added a code to remove any trailing whitespace in a file