Evaluated proc %- {who q} { set id [lsearch -regexp [split [string toupper [%% $who]] "\n"] [string toupper $q]]; if {$id > -1} {set ::playlist($who) [join [lreplace [split $::playlist($who) \n] $id [+ $id 3]] \n]} {. no matches} }