I don't think theres an easy way to do that...

using val function will only return the first character..
you would have to evaluate the string expression for numbers and operators and then do conditional logic testing to result
in a correct answer...

My question to you is are you trying to build a calculator of some sort?