hexCharacterToInt now uses tolower