[Help] Remove spaces form the names in /queue simple

Hi all,
I have named my simple queue rules with spaces , Like “Mike Edd”,
i wanna script to remove all these spaces from the names auto .
is it possible
Thanks

UP

:global name “some name”;
:global newname;
:for i from=0 to=([:len $name]-1) do={ :local tmp [:pick $name $i];
:if ($tmp !=" ") do={ :set newname “$newname$tmp” }
}

Thanks for response , but nothing happen !

and what should happen?
you need output on screen?
if true then add
:put $newname
at the end of the script