trimming of management end point url should happen properly for account import to execute successfully