This still loops through all the numbers even after it find the result.

``` ruby
Utils.map_detect(territories) do |territory|
 number = territory.parse_national_string(string)
 number if number.valid?
end
```