public static String removeBeginningAndEndingQuotes(String input){
  if (input == null || !input.startsWith("\"") || !input.endsWith("\"")) {
    return input;
  }
  return input.substring(1,input.length() - 1);
}

public static String removeBeginningAndEndingQuotes ( String input ) { if ( input == null || ! input . startsWith ( "\"" ) || ! input . endsWith ( "\"" ) ) { return input ; } return input . substring ( 1 , input . length ( ) - 1 ) ; }
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 .
