strsplit in older matlab/octave is a bit spotty, here is our own implementation