find null character in ocr