program to remove duplicate from a string