I have an example attached
A multiline string splitted into an array of strings
processed by scan from string in a for loop.
If you look inside the for you find the solution for one line.
I don't understand why you had the resolution problems but send me the original source and I can find out
greetings from the Netherlands