This is kind of unncessary. Why not just make a `STATUS_DELIVERED` static variable and check to see if that event name is equal to that? It's simpler and requires less chaining, gsubbing and such.