Optimize cstr_reset() to only reset string to empty, not call free() and later malloc()