How can I remove all whitespace from a string variable?
For example, if I have the below data:
I want all the values of the variable to appear as "HelloThere" .
I tried
but that doesn't seem to seem to remove single space between two words.
For example, if I have the below data:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str20 var "Hello" "Hello" "Hello" "Hello" "HelloThere" "HelloThere" end
I tried
Code:
strtrim
Comment