Handling string element in instance_variables for ruby 1.8