fix commutative string method