updated getMostCommonString