Example urls:
let str = 'https://www.google.com.ua/images/branding/product/ico/googleg_lodp.ico'
let str1 = 'https://www.google.com/images/branding/product/ico/googleg_lodp.ico'
let str2 = 'https://books.google.com.ua/images/branding/product/ico/googleg_lodp.ico'
How can I get only the site name from such urls? Only the word - google.