A couple ways to fix it, but the least work would be to change your String split to add the RemoveEmptyEntries string split option. So your assign would be strArray = strSource.Split(Environment.NewLine.ToCharArray(),StringSplitOptions.RemoveEmptyEntries)
2 Likes