>>I would recomend that you use
CEILING(SQRT(OCCURS(SPACE(1),lcStr)))) to make overall size of the expression shorter. With long source string you could exceed 8,192 characters limit on the command line size.
>
>Ok, so basically, this is the new formula.
Yes, it determines how many times you've to run STRTRAN(..., SPACE(2), SPACE(1)) on the source string to eliminate extra spaces in the worst case scenario.
--sb--