Modify read()/write() to buf(), add str()