Tips for working with text

Hello, I need to know the length of a number, if it is composed of 1 or 2 numbers, how can I do it?

Length of block doesn’t work and gives unidentified result