Fix the number of charCodes looped over.