Identifying errors in a certain window and choosing comparison strictness