Wow, such overkill!

try this:

Code:
text1.text = val(text1.text)
hehe. Easy.