Decoding strings, getting most frequent word