title: Delphi remove symbols from String
body: <p>I have searched and tried a couple of loops which are supposed to remove symbols from a string, I need this because certain locations can have a "/" or other type of symbol and I need it removed since FTP will think it's a folder, and I need the string in a name.</p>
  
  <p>The String 'place' varies from the persons current working location, for example there's a 'place' = "S/A StorageRoom", the '/' part of the String make's FTP think that it's a subfolder.</p>
  
  <p>For now I'm using this, which I think is pretty large and could use 'shortening':</p>
  
  <pre><code>   place := StringReplace(place, ',', '', [rfReplaceAll]);
     place := StringReplace(place, '.', '', [rfReplaceAll]);
     place := StringReplace(place, '/', '', [rfReplaceAll]);
     place := StringReplace(place, '!', '', [rfReplaceAll]);
     place := StringReplace(place, '@', '', [rfReplaceAll]);
     place := StringReplace(place, '#', '', [rfReplaceAll]);
     place := StringReplace(place, '$', '', [rfReplaceAll]);
     place := StringReplace(place, '%', '', [rfReplaceAll]);
     place := StringReplace(place, '^', '', [rfReplaceAll]);
     place := StringReplace(place, '&amp;', '', [rfReplaceAll]);
     place := StringReplace(place, '*', '', [rfReplaceAll]);
     place := StringReplace(place, '''', '', [rfReplaceAll]);
     place := StringReplace(place, '"', '', [rfReplaceAll]);
     place := StringReplace(place, ';', '', [rfReplaceAll]);
     place := StringReplace(place, '_', '', [rfReplaceAll]);
     place := StringReplace(place, '(', '', [rfReplaceAll]);
     place := StringReplace(place, ')', '', [rfReplaceAll]);
     place := StringReplace(place, ':', '', [rfReplaceAll]);
     place := StringReplace(place, '|', '', [rfReplaceAll]);
     place := StringReplace(place, '[', '', [rfReplaceAll]);
     place := StringReplace(place, ']', '', [rfReplaceAll]);
     place := StringReplace(place, '\', '', [rfReplaceAll]);
  </code></pre>
  
  <p>Edit:
  I'm currently using RAD Studio 10.1 Berlin</p>