arithmeticString now throws exception on empty input, removed printing.