You have real diff here:
> "hello world" is not equal "hello "world"

I tried this code.
Behaves as expected, prints equal.

class Obj
  attr_accessor :text
end

def test
  obj=Obj.new
  obj.text="world"
  localtext="world"
  if obj.text == localtext then
    print "equal\n"
  else
    print "not equal\n"
  end
end

test

Isolate the problem, and wrap it in a test/unit. Then I can take a 
closer look.

Christer

-- 
Posted via http://www.ruby-forum.com/.