diff --git a/duniterpy/api/client.py b/duniterpy/api/client.py
index b7a73adc56596d1b7c0aaefae6805902865d9d70..9bbeecca92ec55972275eca060e2dae71fcb973b 100644
--- a/duniterpy/api/client.py
+++ b/duniterpy/api/client.py
@@ -190,7 +190,7 @@ class Client:
         :param session: Aiohttp client session (optional, default None)
         :param proxy: Proxy server as hostname:port
         """
-        if type(endpoint) is str:
+        if isinstance(_endpoint, str):
             # Endpoint Protocol detection
             self.endpoint = endpoint.endpoint(_endpoint)
         else:
@@ -277,7 +277,7 @@ class Client:
     async def __call__(self, _function: Callable, *args: any, **kwargs: any) -> any:
         """
         Call the _function given with the args given
-        So we can have use many packages wrapping a REST API
+        So we can have many packages wrapping a REST API
 
         :param _function: The function to call
         :param args: The parameters