[#2061] make NO_ALLOC work for STR