JRuby

String.new(string) does not seem to clone the input