Fix a bug in the fold_string function
Fix a bug in the fold_string function

I incorrectly assumed a zero based position argument in expr substr

wilfriedvanasten/miscvar,wilfriedvanasten/miscvar,wilfriedvanasten/miscvar