This works fine for concrete expressions (e.g. "23+2"), but I get errors anytime I try to evaluate an expression containing variables, likely due to scope issues. Is there any way to evaluate a string as an expression when that expression/string contains variables?