Difficulty displaying a list in the correct order

Hi,
the task is:
Import a list of names via clipboard, shuffle this list in random order and display it.
It should determine the order of the players, who starts first, second, etc.

Everything works except for the correct display after random mixing.
The namelist:

Namelist

Here the event part:

The imported list looks ok:

imported list

After random:

random_list

The last entry in the original list has no new line after the random.
The debugger also shows a missing new line for James:

debugger

If I manually add a new line via the debugger, the displayed result is correct:

debuggeredit

Result:

random_list_ok

I have tried many things, but I cannot solve this problem.
Adding a newline at the end, a zero is displayed:

imported list newline

Thank you very much for your help