Remove the duplicate values from a text rule input?

Certified Senior Developer

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