removing spaces from value string