------
## 最终结论
```python
def string_xor(a: str, b: str) -> str:
    """ Input are two strings a and b consisting only of 1s and 0s.
    Perform binary XOR on these inputs and return result also as a string.
    >>> string_xor('010', '110')
    '100'
    """
    result = ""
    for char_a, char_b in zip(a, b):
        result += '1' if char_a != char_b else '0'
    return result
```