auto remove extra spaces when saving.