trim ends on serverApiBase