Added mapping to remove whitespace from the end of files.