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

no, manually in assign for example ,enter in studio and it delete same symbol as previous