Shouldn't the `indexOf` also be testing for the colon too?