Noticed some code such as
string[] ary = parms.Split(",".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
for( int i = 0; i < ary.Length; i++)
ary[i] = ary[i].Trim();
works fine but wondering if there is a better way to do this in one step
BTW, consider using generic typed list like
List<string>rather than legacy arrays