This is an ugly work around but you could do the following.
set a [list 245 278]
set a [string map " " "-" $a]
then set a as the value in the hidden field.
Then in your spam.tcl for processing the form you can do transform the numbers back using the string map function
Not sure how good the suggestion is but it should work
Darren