add some string method and toJSON method