title: jQuery: remove duplicates from string
body: <p>I have string values that contain a list of items separated with a comma, e.g. the value could be <strong>val1,val2,val3,val1,val4,val3,val2,val5</strong>.</p>
  
  <p>Is there an easy way I can remove all duplicates from such a string so that each value only appears once within the string ?</p>
  
  <p>E.g. in the above example I would like to get <strong>val1,val2,val3,val4,val5</strong> instead.</p>
  
  <p>Many thanks in advance, Tim.</p>