Correctly account for multiple answers, and handle conversion errors more gracefully.
Improve test to look for exceptions on invalid input.
Refactor area code extraction code for clarity and robustness.