You need to write a little function that does this:
1. splits the string by " - "
2. loop through the returned array and adds unique items to a list of strings
3. build the string from list adding " - " between the states
4. return the string.