On problems dual to unification : the string-rewriting case