collapseWord - remove next-to-each-other duplicate characters from word