Fix startswith, add a test to show that we get an IndexError when there is no where