Removes trailing slash from baseUrl