added strToVec helper function