i don't think this will work. i think you need to iterate through all the charSet to see if any character is in transition.