code: protected String normalizeDomain(String s) {
          // remove country code
          int idx = s.lastIndexOf(".");
          if ( idx >= 0 ) {
              s = s.substring(0,idx);
          }
          if ( s.startsWith("www."))
              s = s.substring(4);
          return s;
      }
docs: removes 'www' in case and removes country code. EXPECT protocol to be absent
  @param s
  @return