updated strsplit to use memstash