BUG-2825: do not instantiate a temporary string