Implement InvalidCharacter
Fix typo
Refactor exceptions
Make printer class
Make test for printer
Refactor
Add test cases for invalid patterns