Fix mistake; using 'indexOf' instead of 'contains' now