implement String class like java use Objective-C