I think this docstring is currently half docstring, half comment, if we consider docstrings to be for users, and comments to be for implementers. "Inserts the input string at the given index of the fmtstr" is great, and maybe this should end there, or continue on to talk about what end does. The rest of this should be a comment.