add and write functions in string_helper.c