make the buffer without the control character