charToInt tested, debuged and verified.