Update _string.h

Added method allocate, manually allocates for str pointer