update StringBuffer interface
include assert.h