test insert for string.cpp