Ruby filter to pack string value into object

That looks a lot like this.