How to manipulate a part of string: Split, Trim, Substring, Replace, Remove, Left, Right

Hi Adrian,
Apologies to trouble you again, as I am trying to optimising the bots on some reducancy process and as of how could I remove those duplicate numbers in the array? I have try Union (from this link How to remove a duplicates values from the array and listbut couldn’t get the result.

Thanks you in advance for your help and guidance once again.