title: Remove whitespace in VBA excel
body: <p>I have some code for move text from cell to cell</p>
  
  <pre><code>Dim startIndex As Integer
  Dim toIndex As Integer
  Dim f As String
  Dim g As String
  
  For startIndex = 50 To 60 Step 2
  toIndex = Str(startIndex + 1)
  f = "F" &amp; Str(toIndex)
  g = "G" &amp; Str(startIndex)
  Range(f).Value = Range(g).Value
  Range(g).Value = ""
  Next startIndex
  </code></pre>
  
  <p>But variable f has "F 51" value instead of "F51".</p>
  
  <p>How solve this problem ?
  p.s. It's my first code on vba.</p>