let's say I have a string: "xxxxxx.xxx"
and I want to loose the .xxx (always the last 4 characters) and I want to make the first x of the string an uppercase X so you would have:
"Xxxxxx"
I've tried it with string range but it didn't work out.
set mapvol [lindex $row 4]
set mapstrip [string range $mapvol 0 [expr [strlen $mapvol]-5]]
set map1 [string toupper [string range $mapstrip 0 0]]
set map2 [string range $mapstrip 1 end]
set map $map1$map2