Added some logic for formatting a phone number.