title: How to clear the string variable?
body: <p>I need to use a string variable multiple times for checking if workds are palindromes. I am using this code:</p>
  
  <pre><code>var
  s:string;
  back:string;
  x,n:integer;
  d:array[1..n] of string;
  begin
  read(n);
  for i:=1 to n do begin
  readln(s);
  s:= Lowercase(s);
  for x:=length(s) downto 1 do begin
  
  back:=back + s[x];
  
  if back=s then begin
  writeln('It's a palindrome');
  end;
  </code></pre>
  
  <p>But if my n is higher than 1 the variable 'back' will be the same as from the first loop, so it won't find any more palindromes. I know that for numbers zero is neutral so that's how i can reset it, but i don't know for string. If i use </p>
  
  <pre><code>back:=' ';
  </code></pre>
  
  <p>words won't be palindromes also because of the space i guess, it just doesn't work with this.</p>