How to add the numbers in a string?

1638969850(1)

The first pic is my code, I want to add 1 to 11.
but its a string,not number,i try to use lots of code,can not do it…
the second pic is my whole code…

@Li_Zhuoran_2128 Do you mean you want the sum of them?

yes,I want to make a calculation, add them up, and keep the third cubic of m behind

@Li_Zhuoran_2128 add a Math.Sum to your script after the Math.Round, then make it a string and add the m3 to the result… you can do the same too using a Schedule View in Revit.

got it,i just find the sum