public static String secureString(String s){
  if (s == null)   return null;
  return s.replace("'","''");
}

public static String secureString ( String s ) { if ( s == null ) return null ; return s . replace ( "'" , "''" ) ; }
escape quote marks in the given string by doubling it ( ' - > ' ' ) .
