converts txtBuff into an array arrayedTxtBuff
arrayedTxtBuff is joined back to a string