create function to check string if it is a phone number