How about we merge these two to:

    require(0 <= firstByte && firstByte <= lastByte, "firstByte must be >= 0 and <= lastByte")

And we can drop the `s` string interpolation marker.