Pre-allocate output string/sequences in advance.