evaluate expression string, support basic math functions