get string from buffer