Update client.rb

Remove the error of undefined method of has_key? for String class