StringBuffer:insert(position, str)

Insert a string into the middle of a StringBuffer starting at the specified position.

Example

sb = StringBuffer.new()
sb:append('foobar')
sb:insert(4,'d')