title: Function that can be use to omit duplicate value on a string
body: <p>I would like to ask if there is a function that can be use to to remove a duplicate value inside a string separated by | simplest possible way. I have below example of the string</p>
  
  <pre><code>1111-1|1111-1|1111-3|1111-4|1111-5|1111-3
  </code></pre>
  
  <p>the output that I'm expecting is:</p>
  
  <pre><code>1111-1|1111-3|1111-4|1111-5
  </code></pre>
  
  <p>Thanks in advance.</p>