switched to STL's implementation of explode