New method charFrequencyInString.