NewStreamTokenFromString
Line 291 could panic when trying to set `positions[i]` if `i == len(positions)`.