convert the append buffer to string