StringBuf usage

StringBuf is usually faster than pure string concatenation, so I went ahead and changed some code for that.