trimming server and this check should be done during adding server