title: uploading the name of the images
body: <p>I'm uploading the name of the images to the database!</p>
  
  <p>The problem is that the name is in the database with a blank space before the name!</p>
  
  <p>Where is the problem?</p>
  
  <pre><code>$original_name = strtolower(trim($arquivo['name']));
  $caracteres = array("ç","~","^","]","[","{","}",";",":","´",",","&gt;",
                     "&lt;","-","/","|","@","$","%","ã","â","á","à","é",
                    "è","ó","§","ò","+","=","*","&amp;","(",")","!","#","?",
                    "`","ã"," ","©","£");
  
  $original_name = str_replace(' ', '', $original_name);
  $final_name = str_replace($caracteres,"",$original_name);
  </code></pre>