toString().indexOf can be replaced with toString().contains