Find word ranges in a string | dStruct