Rearranging shallow init and copying of strings