Delete trailing space in every mode at save