And what is the point of if { [string match "" "$a"] } { when you can just do if {$a == ""} Instead of lindex junk, regsub the space with either %20 or %2B (+ sign) depending on what the website wants for spaces.. thanks that was it needed the %20 works great :) if {$a...