e.g. i am getting data like "vivartvivartpandey" i want output like "vivartpandey" Only one thing is fixed that data will come either like string1+string1+string2 or like string1+string2 (no duplicate) but string1 and string2 both are variable.
So How to identify string1 and remove duplicate string1?