Remove repeating elements