question: private static String convertToQuotedString ( String s ) { if ( s == null || s . isEmpty ( ) ) { return null ; } if ( s . charAt ( 0 ) == '"' && s . charAt ( s . length ( ) - 1 ) == '"' ) { return s ; } return '\"' + s + '\"' ; }
target:  Encloses the incoming string inside double quotes, if it isn't already quoted.