split and trim out of Server class