refactoring
fix a bug in identCharToString