math_eval: constify the char* inputs