Likely int() uses parseInt() under the hood so it would still return 0. The string would need to start with a number for int() to work.
If your layout makes have the pattern of a letter then a number then you could do int(mid(layoutname,1,10)) or something.
Yeah, you are right. I forgot that it parse correct only if first symbol is number. Looks like i need something like regex or I will try your solution. Thanks
UPD: It works perfectly. Thanks