var str = 'llo!' str.sub!(/^/, 'He') say str
or
var str = 'llo!' str.prepend!('He') say str
Hello!
Last updated 1 year ago