In memo1 there is a text of this kind:
Zadacha378328328
Zadacha435455656
Zadacha7785343434
Split text by character, that is:
For example:
I specify in Edit1 - the number 4 (from which to divide the character)
I specify a separator in Edit2, for example "-"
I specify in Edit3 how many parts per line, for example 2
And the text in memo1 changes:
Zada-ch-a3-78-32-83-28
Zada-ch-a4-35-45-56-56
Zada-ch-a7-78-53-43-434 (if the number of characters is not pair, then at the end like this, all that remains).