fixed string function toCharCodeArray()