private static String removeQuotesEncolosingOption(String fileName,String option) throws Exception {
  String option1=removeQuoteCharactersIfNecessary(fileName,option,'"');
  if (!option1.equals(option)) {
    return option1;
  }
  return removeQuoteCharactersIfNecessary(fileName,option,'\'');
}

private static String removeQuotesEncolosingOption ( String fileName , String option ) throws Exception { String option1 = removeQuoteCharactersIfNecessary ( fileName , option , '"' ) ; if ( ! option1 . equals ( option ) ) { return option1 ; } return removeQuoteCharactersIfNecessary ( fileName , option , '\'' ) ; }
removes the surrounding quote characters as needed . it first attempts to remove surrounding double quotes . if successful , the resultant string is returned . if no surrounding double quotes are found , it attempts to remove surrounding single quote characters . if successful , the resultant string is returned . if not the original string is returnred .
