protected static String removeSpecialSpaces(String urlPart){
  StringBuilder stringBuilder=new StringBuilder(urlPart);
  for (int i=0; i < stringBuilder.length(); i++) {
    char curr=stringBuilder.charAt(i);
    if (CharUtils.isWhiteSpace(curr)) {
      stringBuilder.deleteCharAt(i);
    }
  }
  return stringBuilder.toString();
}

protected static String removeSpecialSpaces ( String urlPart ) { StringBuilder stringBuilder = new StringBuilder ( urlPart ) ; for ( int i = 0 ; i < stringBuilder . length ( ) ; i ++ ) { char curr = stringBuilder . charAt ( i ) ; if ( CharUtils . isWhiteSpace ( curr ) ) { stringBuilder . deleteCharAt ( i ) ; } } return stringBuilder . toString ( ) ; }
removes tab ( 0x09 ) , cr ( 0x0d ) , and lf ( 0x0a ) from the url
