Added str2mem() and str2num()