Insert the string chars just before the character at index (if index is 'end', just before the final newline). By default the new text inherits any tags present on both sides of the insertion point. If args is given, it consists of alternating tagList, chars values: the preceding chars receives exactly the tags listed (a tag list may be a single tag name or a sequence of names), overriding the surrounding tags.