Add hook to remove trailing spaces when save a file