remove faulty occurences of repeated words