Function to extract the subdomain off of a url