buffer a string