If you want just a string of spaces, with no characters, then this should do the trick for you:
regexp “^[ ]+$” $a
Example:
hcitcl>set a ” “
hcitcl>set b ” abc”
abc
hcitcl>regexp “^[ ]+$” $a
1
hcitcl>regexp “^[ ]+$” $b
0
Hope this helps. Thanks John for pointing out the error of my ways. Even when I worked for you, you were (and still are) so good at doing that. I think that makes your day!!! LOL 😀