test: add test for string
refine string.cpp