Function hashSubject