add string_unitest

add a string unittest to test sting function