end spaces deleted