[FIXED JENKINS-24434] fix trim() usage