How to find the first empty string in an array?

Hi, As the title says, I’m trying to find the first empty string in an array and then add a string to it.
This is what I have so far:

This does work in a way. It finds an empty string in the array and adds the in putted string to it. The problem is that it adds to the end of the array and works it’s way down as more strings are added, It doesn’t start at index 0.

How can I get around this?

Thanks!

Set Array Element is node what you want. (replace insert)