inspect_characterid function

Inspect if a string matches an expected pattern