string: fix truncation for power of two growth/shrink.