check for illegal characters in Pointer items+example