generate the ordinal score of a string