Simple string calculator.