Hello the Statalist Community,
I have a string variables which contains spaces in some of the values as Prefixes and suffixes as shown below
string_var
" Kenya"
"Ireland "
" South Africa"
" India "
"Burkina Faso"
"Mexico"
How can I remove those unnecessary backspaces from this string variable? Please note that I want to remove only blank spaces in the prefix and suffix of the string values (not those in the middle)
Best, Anagaw
I have a string variables which contains spaces in some of the values as Prefixes and suffixes as shown below
string_var
" Kenya"
"Ireland "
" South Africa"
" India "
"Burkina Faso"
"Mexico"
How can I remove those unnecessary backspaces from this string variable? Please note that I want to remove only blank spaces in the prefix and suffix of the string values (not those in the middle)
Best, Anagaw
Comment