Replace indexOf() by contains()