Reduce str allocations