Add registerRulesInDir to StringChecker

If user want to add rules on the fly, it would be easier to have this kind of function.