null terminate the char*