Evaluates string-based mathematical expressions.