Defined xor_strings_cycle and fixed XOR order.