Hi!!!

I have a string like this "23723567345", how can I do so I turn it into this "234567". The string can change can be like "345234". But the numbers it contains only go from 1 to 9.
In other words, how to remove the repeated chars in a string with only numbers from 1 to 9.