fixed xor and strcat