Added new class "MyString" and implemented it in main class.