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 + '\"';
}

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 + '\"' ; }
encloses the incoming string inside double quotes , if it isn ' t already quoted .
