Remove duplicate strings to replace