?OCCURS(SPACE(2),strtran(space(1)+'a'+space(2)+'b'+space(3)+'c'+space(4)+'d',space(2),space(1)))Strtran works only from left-to-right and replaces the first occurance of overlaping strings
?len(strtran(space(3),space(2),space(1)))will say '2' which is correct:
Make solutions, not programs!