Well... I was trying to use isnumber but it doesn't seem to work. I made it echo to the channel to see what it returned and it always returns 0, no matter what.
Might I ask why (or where) you need to get rid of whitespace? If you're getting whitespace in your numbers, then you're extracting them wrong. But anyway, you get rid of whitespace like this (well, it's one way):
regsub -all " " $blah "" blah
I think I should point out that [string range] is not the best way to extract words from a string. Also, if you know you're trying to extract 2 numbers, you can use 1 regexp statement to extract and validate both of them.