delete unwated spaces on save