Auto-remove trailing spaces