Hi Frndz,
Functionality: Remove space from string Array
Using Forloop and Use Trim Function to remove space
Logic :
string[] strArr = { "aa", " bb", "happy hour", "cc", " dd", " sms send" };
string strTemp = "";
foreach (var item in strArr)
{
strTemp = strTemp + "," + item.Trim();
}
strTemp = strTemp.TrimStart(',');
strArr = strTemp.Split(',');Hope this helpful!
Thanks