Set up function to determine if a string follows the pattern of a phone number.