removing spaces from tags