Sorry, but it still isn't right. The problem is that instr doesn't return 0 or 1, it returns the position in the string (which i know you know). So if $y=" ", then instr(".!? ",$y) and $o=$o+1-4*$o.

I hope you can condense that part of the script though, i stared at it for quite a while without shedding a character.
_________________________
Eric