I agree. I should have said, allow an exception to be raised and either handle it or allow it to happen depending on the behavior you want. Here, you're 'handling' the exceptional case with an if..else clause when really, if the string isn't digit-like, we want the exception to be raised.