question: 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 , '\'' ) ; }
target:  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.