title: Ruby Arrays with similar entries
body: <p>I have two arrays </p>
  
  <pre><code>Device = ["Washington DC","Newyork","San Diego","Florida"]
  
  Device1 = ["Washington DC","Newyork","San Diego","Florida"]
  </code></pre>
  
  <p>when I do this to delete spaces from elements of one of the arrays</p>
  
  <pre><code>Device.each do |x|
    x.gsub!(' ','')
    puts x
  end
  </code></pre>
  
  <p>spaces from elements of other array also been deleted. When I do puts for both arrays this is what I am getting</p>
  
  <pre><code>["WashingtonDC","Newyork","SanDiego","Florida"]
  ["WashingtonDC","Newyork","SanDiego","Florida"]
  </code></pre>
  
  <p>Please tell me what wrong I am doing or what should I do to delete spaces from one of the array's elements only</p>