Implemented a method is_restricted

- This method returns if a character is in restricted set.
  Finding a restricted character anywhere is an error