Trims trailing white space on save