To associate a pointer with a string you could also use a hash map (see GSHashmap by pegamode) or a similar data structure. This should be considered if you need many string lookups per frame, because a linear search is much slower.