space remove end