create function to check string to see if it is a url