How do i duplicate a text with Api like this but with Api

For I = 0 to 5
A = A & Text
next I