Create a line break in a ForEach

I have a ForEach loop that outputs an array of characters of a phrase, how would I be able to make it that the ForEach goes to the next line when the character is a space?

Can you share your code? It would be much better if the code contains some example data.

Maybe you could insert the \n before using the string in the ForEach.