title: Unexpected behavior with a string stored in a variable in PowerShell
body: <p>I'm getting some odd behavior from Excel's <code>Cells.Find()</code> method:</p>
  
  <p>Variable I'm searching on:</p>
  
  <pre><code>PS &gt; $volumename
  vol_01       
  
  PS &gt; $volumename.GetType()
  
  IsPublic IsSerial Name                                     BaseType                                                                                                                                            
  -------- -------- ----                                     --------                                                                                                                                            
  True     True     String                                   System.Object 
  </code></pre>
  
  <p>produces no results:</p>
  
  <pre><code>PS &gt; $sheet.Cells.Find($volumename).Row
  </code></pre>
  
  <p>but if I manually copy and paste the value of that variable:</p>
  
  <pre><code>PS &gt; $volumename = "vol_01"
  PS &gt; $volumename.GetType()
  
  IsPublic IsSerial Name                                     BaseType                                                                                                                                            
  -------- -------- ----                                     --------                                                                                                                                            
  True     True     String                                   System.Object 
  </code></pre>
  
  <p>Gets the value I am expecting:</p>
  
  <pre><code>PS &gt; $sheet.Cells.Find($volumename).Row
  198
  </code></pre>
  
  <p>They appear to be exactly the same type in every way to me.  This doesn't happen for every case.  Some volume names passthrough fine while others do not.  I did scrub the volume name for this post as it has a customers naming convention.  It is the same format as above and the same format as the volume names that work.</p>