added function to determine if the input is a URL