Added option to strip trailing spaces on save