The insert command inserts elements into a list or string.
insert returns an error if the index is too large.