Hi Devon!
Great to see a new face on the forum. 😊
I would use string range to do that.
set result [string range $temp 2 4]
In OpenACS, you can use the developer shell to play around with stuff like that. It's under /ds/shell.tcl
Best of luck, and feel free to ask as many questions as you like. Beginners are VERY welcome.
Brian