Skip the for and use Linq and Where to return an IEnumerable<string>. Then we can call ToArray() to return it as a string[]. Sorry in advance, it would let me paste an image but not the code I copied.
for
Linq
Where
IEnumerable<string>
ToArray()