Evaluated proc qwerty2dvorak str {set qwe "qwertyuiopasdfghjklzxcvbnmwv/"; set dvo "',.pyfgcrlaoeuidhtn;qjkxbmz"; set out ""; for {set i 0} {$i < [string length $str]} {incr i} {set fuck [lsearch [split $qwe ""] [string index $str $i]]; if {$fuck > -1} {append $out [string index $dvo $i]} {append $out [string index $qwe $i]}};. $out}