add and remove space