Converting text to number to complete a math operation

Hi there,
Through a manipulation of a text string, I am coming up with a number which I then wish to perform a math operation on. However, it is still a “string” in the code.

Is there a codeless block or a sequence of block that can transform a string to a number?

In essence, what I am trying to do is the below:

image

And I need it to return 4 (it currently returns 31).

Hi @Andreas_Marinopoulos ,

this should work:

image

Regards,
Stanislaw

thanks!