Processing expression string and calculate