Replace string that is longer than 255 characters by using List


I’d like to replace string to word file but the problem is the length of string is dynamic, it might be 200, 400, or even 2000 characters.
But the replace method won’t work if string is longer than 255 characters.

Is it possible if I create list variable (aList) and put every 255 characters of string into aList and automatically replace aList into word file.

Or is there any better way to do this?

Thank you.

fyi, I found the answer from the link below.

How do you use the long path tool with uipath? is there an activity that i can use?