code: private static String removeQuotesEncolosingOption(
              String fileName, String option) throws Exception {
  
          // Attempt to remove double quotes. If successful, return.
          String option1 = removeQuoteCharactersIfNecessary(fileName, option, '"');
          if (!option1.equals(option)) {
              // Quotes were successfully removed
              return option1;
          }
  
          // Attempt to remove single quotes.
          return removeQuoteCharactersIfNecessary(fileName, option, '\'');
      }
docs: 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.
  @param fileName
  @param option
  @return
  @throws Exception