Determines if a string is contained in a list of other strings