Add logic to delete trailing whitespace on save