```ruby
module Serverspec
  module Type
    class Base
      def initialize(name=nil)
        @name = name
      end

      def to_s
       type = self.class.name.split(':')[-1]
        %Q!#{type} "#{@name}"!
      end
    end
  end
end
```

Fix to display "KenrlModule" as "Kernel module"
user
```ruby
module Serverspec
  module Type
    class Base
      def initialize(name=nil)
        @name = name
      end

      def to_s
        type = self.class.name.split(':')[-1]
        type.gsub!(/([a-z\d])([A-Z])/, '\1 \2')
        type.capitalize!
        %Q!#{type} "#{@name}"!
      end
    end
  end
end
```
assistant