do not add separator if the buffer is empty