Use startswith, not indexing.