Replaced StringBuffer with StringBuilder in couple of local scopes.