Fixed unrecognized contains function (used indexOf isnstead)