Check to see if one group of strings belong to another group