public static String removeUrlScheme(String aUrl){
  String urlRetValue=aUrl;
  if (null != aUrl) {
    if (aUrl.startsWith(HTTP_SCHEME)) {
      urlRetValue=aUrl.substring(HTTP_SCHEME.length());
    }
 else     if (aUrl.startsWith(HTTPS_SCHEME)) {
      urlRetValue=aUrl.substring(HTTPS_SCHEME.length());
    }
  }
  return urlRetValue;
}

public static String removeUrlScheme ( String aUrl ) { String urlRetValue = aUrl ; if ( null != aUrl ) { if ( aUrl . startsWith ( HTTP_SCHEME ) ) { urlRetValue = aUrl . substring ( HTTP_SCHEME . length ( ) ) ; } else if ( aUrl . startsWith ( HTTPS_SCHEME ) ) { urlRetValue = aUrl . substring ( HTTPS_SCHEME . length ( ) ) ; } } return urlRetValue ; }
remove the http schemes from the url passed in parameter
