input: Write a class named StringCaseModifier to modify the case of the string. The class should have methods to convert the string to uppercase, lowercase, and title case. The class should take a string as input during initialization. If the string is "Hello World", calling the to_upper method should return "HELLO WORLD", calling the to_lower method should return "hello world", and calling the to_title method should return "Hello World".
  
  class StringCaseModifier:
      def __init__(self, string):
          self.string = string
  
      def to_upper(self):
          return self.string.upper()
  
      def to_lower(self):
          return self.string.lower()
      
      def to_title(self):
          return self.string.title()
  
  assert StringCaseModifier("Hello World").to_upper() == "HELLO WORLD"
  assert StringCaseModifier("Hello World").to_lower() == "hello world"
  assert StringCaseModifier("Hello World").to_title() == "Hello World"
output: class StringCaseModifier:
      def __init__(self, string):
          self.string = string
  
      def to_upper(self):
          return self.string.upper()
  
      def to_lower(self):
          return self.string.lower()
      
      def to_title(self):
          return self.string.title()