Have you confirmed that the array is loaded properly? What are you using to check, array.indexof()? If the string has to match exactly, make sure you're not adding any unnecessary characters like spaces when populating your array.
Also it might be worth trying to use the dictionary object and the "Has Key" condition instead. I suspect it could be significantly more efficient for searching through large amounts of strings, although I haven't tried it myself.