go to post Ben Graham · Aug 13, 2021 $ZSTRIP will delete repeating characters set newstring=$ZSTRIP(oldstring,"=W") // for whitespace set newstring=$ZSTRIP(oldstring,"="," ") // for only spaces