Since we recycle the text objects, it might be best if additionnal data associated with the names are decoupled from them. In my example, I would use the array to do so, by turning it into a 2D Array.
edit : Just realized you wanted to stay away from the array, I updated the example to work directly with the text objects.