ToExpression
ToExpression[input] gives the expression obtained by interpreting strings as Wolfram Language input.
Examples
Convert string to expression:
ToExpression["1 + 2 + 3"]
(* 6 *)Parse symbolic expression:
ToExpression["x^2 + y"]
(* x^2 + y *)Please visit the official Wolfram Language Reference for more details.