Merge branches of text together with a flattened text inbetween

Hi,

I have got 2 ‘Replace text’ nodes containing 10 branches of text (0 to 9).

I want to merge the text like this:

The final text panel can be a big flattened one. What is the best way to do this? Thanks in advance