TESB-13677 trim() servicename and portname