Deletes a sequence of characters. The characters that are deleted are
those characters at positions from start.pos up to, but not including
end.pos. If end.pos is negative, then the the characters deleted
are those from start.pos to the end of the text.