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 can first do split() on spaces and then take union() of the split array to filter out repeated strings. Lastly concat the result with spaces in between.