Finds a choice matching the given string. If no matching choice is found, -1 is returned, otherwise the position of the matching choice is returned (starting from 0).