Parse the entered endpoint and node API so that it follows the URL format and cut off the / in the end