This seems like a pretty fragile way to do this, couldn't we just check for the prefix instead?