A ruby string calculator