Added PETSCII validation routines