Hande trailing space for API URL