Check if a string is an URL