Convert hash to string