Calculator that takes string input