fix inserting diff length strings bug