removing spaces inserted