check against possible substring situation