Nope, both wrong; both solutions give:

'AA AA', 'A' ==> CC DD
'AA AA. AA AA', 'A' ==> CC DD. DD EE



The code could be 387 and be correct if
Code:
$o=IIf(0<InSTR('! ? . ',SubSTR($t,$j,2)),-1,$o+($=' '))



this gives

'AA AA', 'A' ==> CC DD
'AA AA. AA AA', 'A' ==> CC DD. CC DD

Which in my opinion is correct.

_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...