public static String removeQuotes(String s){
  if (s == null) {
    return null;
  }
  String trimmed=s.trim();
  if (trimmed.length() == 0) {
    return trimmed;
  }
  int i=nextNonQuoteIndex(trimmed,0,true);
  int j=nextNonQuoteIndex(trimmed,trimmed.length() - 1,false);
  return trimmed.substring(i,j + 1);
}

public static String removeQuotes ( String s ) { if ( s == null ) { return null ; } String trimmed = s . trim ( ) ; if ( trimmed . length ( ) == 0 ) { return trimmed ; } int i = nextNonQuoteIndex ( trimmed , 0 , true ) ; int j = nextNonQuoteIndex ( trimmed , trimmed . length ( ) - 1 , false ) ; return trimmed . substring ( i , j + 1 ) ; }
trims white spaces and remove quotes from the string .
