removed unused string contains method