Remove space of end