Contraction theorem for the algebraic reduction of (anti)commutators involving operator strings