public static String cropWww(String domainName){
  if (StringUtils.isEmpty(domainName)) {
    return null;
  }
  if (domainName.startsWith("www.")) {
    return domainName.substring(4);
  }
  return domainName;
}

public static String cropWww ( String domainName ) { if ( StringUtils . isEmpty ( domainName ) ) { return null ; } if ( domainName . startsWith ( "www." ) ) { return domainName . substring ( 4 ) ; } return domainName ; }
crops www . prefix from the domain name
