Write a Python program that inverts an arbitrarily long binary string. The program should be as compact as possible.
Here is one way to write the function:
```python
def invert_string(s):
    return ''.join([chr((ord(c) ^ s[-1]) >> i & 1) for i, c in enumerate(s)] if len(s) > 0 else []))
```