Replace ^ with xor