*/
public static void setString(IRubyObject irb, String text) {
// is string?
if (irb instanceof RubyString) {
RubyString rs = (RubyString) irb;
rs.clear();
rs.append(RubyString.newString(irb.getRuntime(), text));
} else {
throw new IllegalArgumentException(irb + " is not a String");
}