The SR in the inner for loop is not initialized so it keeps its data from one run to the next. I see three solutions:
1. You can remove this for loop and put the SR on the outer for loop, initializing it to empty.
2. Keep the inner for loop but when the outer loop executes the first time (i==0) don't concatenate the content of the SR.
3. Remove the inner loop and ouptut the string coming out of the case structure to an auto indexing tunnel. Input the outcoming array of strings to
Concatenate Strings before formatting.