first files with contains replacing indexOf