I need to convert a string of 10 characters to an integer number and add them all together.

For example, the string I enter is;

1111111111

I need to be able to convert that into an array and then add them eg;

array[1] + array [2] + array [3] etc etc etc.

Can anyone help me or point me in the right direction?

Thanks in advance for any help anyone can give me with this.