Copy lenght parameter to text parameter

@mee I would suggest you have a look at the following post to answer that question and the replacement way should be good enough, and it shuld be placed just before the elements goes into the codeblock.