modify sdstring module:
  - fix bug of sdstring_clear(): append a terminated byte '\0'
modify sdstring.c : refactor codes
modify sdstring module : small fix