A basic implementation of StringBuffer