modify sdstring module:
  - fix bugs of create a emtpy string: should preallocate some memory
    for '\0'
  - add function for search, trim and copy substring