def hoge_r(s) s[1] = "1" end a = "abc" b = a hoge_r(a) puts a puts b