My requirement is to remove the duplicate values from a rule input of type text. Here is a sample input and output.
Input: Hello hello Hello there there past pastures
Output: Hello there past pastures
Discussion posts and replies are publicly visible
You use split() to turn it into a list and union() to remove duplicates.
Union will return Hello hello there past pastures
But the result should be Hello there past pastures