string and chars's insert, left, right, mid impl.