How to replace text in mutilple textshapes to some new text using foreeach loop

Hi I am yogesh and i am a c# developer...

I have a question..

2) I HAVE 4 TEXTSHAPE IN A CURVESHAPE..ALL THESE TEXTSHAPE CONTAINS SOME TEXT..WHICH I NEED TO REPLACE WITH SOME NEW TEXT....HOW SHOULD I DO THIS...???

Note:::: i dont want to do it with s..text.replace('old text','new text', false).....AS i have hundreds of curveshape which contains even more textshape

PLEASE SUGGEST SOME SOLUTION...