Thanks, I applied a slightly different fix. The function is not intended to work on packages, only on strings, and it is only called internally by ECL. Juanjo -- Facultad de Fisicas, Universidad Complutense, Ciudad Universitaria s/n Madrid 28040 (Spain) http://juanjose.garciaripoll.googlepages.com