string-rectangle

string-rectangle is an interactive autoloaded compiled Lisp function in `rect.el'.

It is bound to C-x r t.

(string-rectangle START END STRING)

Replace rectangle contents with STRING on each line.
The length of STRING need not be the same as the rectangle width.

Called from a program, takes three args; START, END and STRING.