title: remove double quotes from string and convert into symbol
body: <p>This is very simple scenario..</p>
  
  <p>I tried to get all the username and id as hash from the object user. </p>
  
  <pre><code>user = User.all
  data = {}
  User.map do |u|
     data[u.name.to_sym] = u.id
  end
  
  # data will be.. 
  data[:"test"] = 1 ..
  
  But, I need like this data[:test] = 1
  </code></pre>
  
  <p>I want to remove the double quotes from the string (begin and end) and convert into symbol.. 
  or Is there any direct way to convert the model object into hash value what I expected? </p>
  
  <p>I know, there are lot of way (regx or string functions) to remove the double quotes from the string. But, I am expecting very optimized and simple solution. </p>