private String parseString(String info){
  String retValue=info;
  if (m_maxLength > 0 && retValue.length() > m_maxLength)   retValue=retValue.substring(0,m_maxLength);
  StringBuffer out=new StringBuffer(retValue.length());
  for (int i=0; i < retValue.length(); i++) {
    char c=retValue.charAt(i);
    if (c == '\'')     out.append("''");
 else     if (c == '\\')     out.append("\\\\");
 else     out.append(c);
  }
  return out.toString();
}

private String parseString ( String info ) { String retValue = info ; if ( m_maxLength > 0 && retValue . length ( ) > m_maxLength ) retValue = retValue . substring ( 0 , m_maxLength ) ; StringBuffer out = new StringBuffer ( retValue . length ( ) ) ; for ( int i = 0 ; i < retValue . length ( ) ; i ++ ) { char c = retValue . charAt ( i ) ; if ( c == '\'' ) out . append ( "''" ) ; else if ( c == '\\' ) out . append ( "\\\\" ) ; else out . append ( c ) ; } return out . toString ( ) ; }
return string . - clean ' and backslash - check max length
