Fix string clone bug