set up forloop insertion to properly delete characters in loop.