protected function filterArrayStrings($array, $search, $replace)
    {
        $return = array();
        foreach ((array)$array as $key => $value) {
            $key = str_replace($search, $replace, $key);
            $value = is_array($value)
                ? $this->filterArrayStrings($value, $search, $replace)
                : str_replace($search, $replace, $value);

            $return[$key] = $value;
        }

        return $return;
    }