Replace instances of StringBuffer with StringBuilder