Checking of the string begins with `http://` or `https://` should be sufficient to conclude if it is a URL.
Also check if you can load images from all sites.
Some sites ( like Wikipeadia ) block HTTP requests without the required fields considering the request as originating from a bot rather than a browser.