Should be checking indexOf > -1 not 0