What do you think about factorizing argument parsing in a common function being used here and from `substArguments`?
Then, we would do something like this here:
```
let args = parseArgs(str);
for(var i = 0; i < args.length; i++) {
  dict[arg] = gL10nData[arg];
}
```