[elixir] Simplify phone number func w/ pattern matching

Now all but one of the tests are passing. I kind of think the failing
test is erroneous since I think it contradicts the README.