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