delete trail space