How do I check for adjacent characters and if they match, delete one?

yes. maybe it possible to do this with for each?@Gokul001