Not to be too picky, but from the original question and code, $number2 never gets converted to a number, so it would not need to be converted back to string. [Wink]

code:
$number=val($number2)  

_________________________
Eric