Graham
abcdef I cannot reproduce the problem on any of my mobiles .
And as xtscript is a server based code I cannot think why there would be any difference in the output
try this
the line
var $b=call chr $val=59
takes care of the semicolon
(semicolons are ignored if they are the last char on a line)