fix string insertion, need to malloc memory