Calculator returns sum if passed one or two numbers in a string