結果 : function to remove duplicates from string in python