[expr {([regexp -all {\037} [join [lrange $newstring 0 end-1]]] & 1) == 0 ? "" : "\037"}]