Changed variable names to match those described in comments. `$num` -> `$length`
Merge pull request #1264 from ojalehto/typo/validation-strings-helper/variable-names

Changed variable names to match those described in comments