nit: rephrase to make it sound like what the method does, for example "Appends [str] to the output buffer"