In this case you might be able to use the
expr command. Be aware though that this command may cause some serious security issues if data is not properly sanitized, as all data will be passed through the tcl interpreter.
Of course,
scan would still be an option, with a proper pattern...
A third option might be to simply strip the string of spaces using
string trim, as tcl will do the necessary type-casting provided the data makes sense (i.e. string looks like an integer if it only contains digits, as a float if it only contains digits and a single dot, and so on).