Note: this does not perform any math operation at all, it's just string manipulation, it just copy-pastes the values where they should be.
It won't take into account things like order of operations, if you fill one of the values with a sum, like 4+3
it's going to end up wrong.
Consider putting in your own parenthesis to keep the order of operations, like (4+3)