Sorry for the delay!
Yes... I test this with the next example:

     hash = {key1: "  perez", key2: "pereza", key3: "perezaaa   ", key4: {key41: "    holaaa"}}
     strip_hash hash
     => {:key1=>"perez", :key2=>"pereza", :key3=>"perezaaa", :key4=>{:key41=>"holaaa"}}

:cool: