I think to actually see shared strings behavior, you would have to do str2 = str.clone or str2 = str[0..-1].
I think to actually see shared strings behavior, you would have to do str2 = str.clone or str2 = str[0..-1].