public String quoteString(String str){
  StringBuilder sb=new StringBuilder();
  sb.append('"');
  if (StringUtils.isNotBlank(str)) {
    sb.append(escapeQuotes(str));
  }
  sb.append('"');
  return sb.toString();
}

public String quoteString ( String str ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( '"' ) ; if ( StringUtils . isNotBlank ( str ) ) { sb . append ( escapeQuotes ( str ) ) ; } sb . append ( '"' ) ; return sb . toString ( ) ; }
quotes the string and escapes any quotes within .
