urlHostOrNull

Returns the host if the string is a valid url.