do not add separator if the buffer is empty; using ":" as separator