Check if url is a string