fix the invalid write mem bug reported by valgrind when assigning strings
fix the invalid write mem bug reported by valgrind when assigning strings

tumluliu/mmspa,tumluliu/mmspa,tumluliu/mmspa,tumluliu/mmspa