Fix for ternary node string representation