String calculator for TDD