An lvalue substr as you have there replaces the specified characters in the target string with those that are being assigned, as you can see from your output - however I'm not so sure on the purpose of what it is actually doing in your example.
/J\
In reply to Re: What is substring working on here.
by gellyfish
in thread What is substring working on here.
by Scarborough
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |