optimizations to string handling of tx_buffer