Rest extensions

It does not look very efficient to create new object instances just for gettng hold of a string. But assuming that it is not called too often, I can live with that.