Not sure if I understood correctly but how about string mapping those reasons like this: set reason [string map {spam "spam is not allowed" flood "flooding causes drowning"} [join [lrange [split $arg] 2 end]]] If you want a separate file, just read the mapping pattern from a fil...