並んだ重複する文字をまとめる
Top > Ruby [2.2.2] > squeeze
p "aabbccdd1223445".squeeze # "abcd12345" p "aacchhaa__ppoorruuttee__ppiiiippoo".squeeze # "acha_porute_pipo" p "ababab".squeeze # "ababab"