Replacing view templates names

Good day!
I am trying to perform renaming templates names in Revit. Screenshot is attached. Why do I get list of falses in result?
Unfortunately renaming doesn’t working.

It looks like you are not actually feeding elements into the elements input.
I guess you should feed the output of the first python script directly into the element input

Something else…

It works this way(atttached), but incorrectly. You can see original names with numeration 2.2.2. Then by string.replace method I change it to 7. I must emphasise that every necessary element is changed. After last node processeing (set name) 1 name remains with unchanged numeration(highlited). I do try to understand how it works.
Do you have any ideas?

I think for starters your list order is incorrect?
You are feeding 17 names and i assume 16 elements in to the Element.Setname node (based on your output containing 16 bools). Probably start there…

Keep in mind, i am a beginner so if anyone would like to chime in, please feel free.

I have solved it at last. The problem is considered in getting elements(not names) of 3d views templates. In details here: Set View Template for 3D Views - #5 by Mostafa_El_Ayoubi.
I realised it in the following way(attached)