Clean up duplicate strings