the substr was redundant, ord only reads the first byte