find group of given characters as a set in string