First pass for assigning characterIds (when no ambiguity)