I used the debugger and found out that when I append to temp2, it also appends to community so that temp2 remains the same after
temp2
community