Fixed search function for Contains, replaced silly bug of EndOfPath() call with checking of automatic property IsEnd.