remove space at the end