Removing extra whitespace from the file