static String omitQuotesIfExist(String str){
  if (str == null) {
    return null;
  }
  if (((str.charAt(0) == '\"') || (str.charAt(0) == '\'')) && (str.length() >= 2)) {
    str=str.substring(1,str.length() - 1);
  }
  return str;
}

static String omitQuotesIfExist ( String str ) { if ( str == null ) { return null ; } if ( ( ( str . charAt ( 0 ) == '\"' ) || ( str . charAt ( 0 ) == '\'' ) ) && ( str . length ( ) >= 2 ) ) { str = str . substring ( 1 , str . length ( ) - 1 ) ; } return str ; }
omits quotes of all kinds if they exist in the string
