Lotus Script is not good in manipulating multi-valued fields. Formula language has a rich set of functions to do this function. However, formula language lacks the power of real programming language. The solution is in the "evaluate" statement. It allows you to execute almost any formula language program in Lotus Script.
Remove duplicate entries in a field called hobbies. The field is part of a back-end document accessible via the variable doc.