Copy named substring works
Added return variable