public static String unquote(String string){
  if (string.startsWith("'") && string.endsWith("'")) {
    string=string.substring(1,string.length() - 1);
    if ((string.indexOf("\\n") != -1) || (string.indexOf("\\r") != -1) || (string.indexOf("\\'") != -1)|| (string.indexOf("\\\"") != -1)|| (string.indexOf("\\\\") != -1)|| (string.indexOf("\\t") != -1)|| (string.indexOf("\\%") != -1)|| (string.indexOf("\\u001E") != -1)) {
      string=unbackQuoteChars(string);
    }
  }
  return string;
}

public static String unquote ( String string ) { if ( string . startsWith ( "'" ) && string . endsWith ( "'" ) ) { string = string . substring ( 1 , string . length ( ) - 1 ) ; if ( ( string . indexOf ( "\\n" ) != - 1 ) || ( string . indexOf ( "\\r" ) != - 1 ) || ( string . indexOf ( "\\'" ) != - 1 ) || ( string . indexOf ( "\\\"" ) != - 1 ) || ( string . indexOf ( "\\\\" ) != - 1 ) || ( string . indexOf ( "\\t" ) != - 1 ) || ( string . indexOf ( "\\%" ) != - 1 ) || ( string . indexOf ( "\\u001E" ) != - 1 ) ) { string = unbackQuoteChars ( string ) ; } } return string ; }
unquotes are previously quoted string ( but only if necessary ) , i . e . , it removes the single quotes around it . inverse to quote ( string ) .
