question: public static String removeBeginningAndEndingQuotes ( String input ) { if ( input == null || ! input . startsWith ( "\"" ) || ! input . endsWith ( "\"" ) ) { return input ; } return input . substring ( 1 , input . length ( ) - 1 ) ; }
target:  Removes the beginning and ending quotes on a string. If the input string does not have quotes at the beginning and at the end, the input string is returned.