Throw if given a non-string start/end