You maybe want a comment on top: NOTE: Make sure the longer match strings go first, in case someone decides to rearrange things in some cleanup.