public static String quote ( String identifier ) { if ( StringUtils . isEmpty ( identifier ) ) { return identifier ; } String res = identifier . trim ( ) ; if ( ! res . startsWith ( "\"" ) ) { res = "\"" + res ; } if ( ! res . endsWith ( "\"" ) ) { res = res + "\"" ; } return res ; }
Quoting for working with uppercase