String like the original except all in lowercase and no spaces.
StringVariable | String to convert into mashed version. Can be either a value or @VarName (will upvar and read/write). |
Note that arguments of the form XxxVariable can take either a normal value or the name of a variable to read/write, prefixed by @. See
About Using @ for details.
For information regarding exceptions / errors, see
here.
% set DisplayName "Two Words"
Two Words
% set FileName "[Mash $DisplayName].txt"
twowords.txt
% set MyString "Mash ed"
Mash ed
% Mash @MyString
mashed
% puts $MyString
mashed