Need help with string variable formatting

I have string: 1234567890

How can i make it look like: 12 34 56 78 90?

No i think it’s not right idea.
Maybe algorithm with loop will be much better for this work.

Well, I’m assuming you are getting this string as a conversion from some other source that doesn’t allow spaces (otherwise, you could simply type “12 34 56 78 90” with the spaces in there yourself).

Would a format text node work for your uses? You could convert it from text back to string after you use it. WTF Is? Text- Format Text in Unreal Engine 4 - YouTube

9/10 there is a need to divide something into pieces, you’d use modulo:

There might exist a more elegant way but it’s late here… :expressionless:

Following Everynone tip on the module:

(I used | instead of space, just for clarity)

Result:

12|34|56|78|90

Ah, I see, inserting is more logical here. That looks cleaner and neater!

Reverse loop.

But how?
I can’t figure out where the error is. INSERT seems to give +1 to the array and give an error.

What’s the different?Just to understand.

Reverse loop: last to first

Normal loop: first to last.