Merry Christmas to everyone,
I'm trying this code in field calculator tool but something is wrong with python. It seems that doesn't validate the code, doesn't recognize the len and replace function as reserved words. And, when I tries to execute the tool it shows an error "2 parameters are missing or invalid".

I tried restarting the laptop, but it doesn't work.
Best regards,