pry_instance.rb: refactor eval_string logic