Replace `tokens[j].size()` with `n`