get the logical xor of two variables `str1` and `str2`,return (bool(str1) ^ bool(str2))