String memory assignment