Updated class name validator implementation. Fixes #129