Adds hook to remove trailing whitespace on save