Analyse the frequency of repeated chars in a given string