Hi I know this might be a bit silly. But I need to convert my string to a number, and hence I need to use char to loop through the operators. However if I try to do a two or more digit number the number gets broken into single digits. For example.

```
string str="2+16-42X"

char[] ch=str.toCharArray();

```

the output comes as(ignore the commas)

```
2,+,1,6,-,4,2,X

```

I want to get `2,+,16,-42,X`
any suggestion on how to work around this? Thank you