A Simple String Calculator in Ruby