More optimizations on formatstring (ptr_offset is now on each %n)