somestring3 to number?

hello,
how can i convert a string ending in a number to a number?

lets say i have a string such as somestring3

how can i convert that to a number 3?
thanks!
Q