Adding buf.toString