before removing spaces