Remove the duplicated strings