string str=textBox1.Text; object bs = new DataTable().Compute(str, null); textBox1.Text =bs.ToString();