If the objective is to chop a string into words, then there is no need to know the locations and lengths as it can all be done with SCAN. Something like,

words = scan(s, 1:( 1 + countc(s, ' ')));

should do the trick.