A domain name never starts with www :smiley_cat:

This is a copy-paste from http://stackoverflow.com/questions/9607903/get-domain-name-from-given-url