Updating xor to support null, undefined, or empty strings in peers