added function to check if string is URL (not used yet)