Update string.js

I needed to add a value when creating an object structure.
I found the getObject function of the can library to create the structure. And I override it to allow me to add a value to the leaf object.
It seems to make sens for me.