A function that evaluates a string as an equation