>Thank you very much. That was exactly what I needed. I was able to reduce my code with quite a few lines.
Talking about code reduction, although in this case you already have a better solution, if you use a variation of "C", as a matter of principle I wouldn't use the same expression on both sides of the assignment. In other words, I think you should replace:
myString = myString + ca[i].ToString();
with the following:
myString += ca[i].ToString();
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)