Given sets of string data, try to categorizing by finding a pattern of text matching