I have a long string in this format:
hello; world; this; is; a; string; hello; of; some; words;
It's semicolon + space separated. I need to remove all duplicate words in the string. The resultant string should look like this (with the second hello;
removed):
hello; world; this; is; a; string; of; some; words;
How would I do this?