Hi all. I'm strunggling with replace value. For example, I want to replace "services_rehab_challenges_0" to "serv_rehab_chal_0", "services_rehab_challenges_1" to "serv_rehab_chal_2", ......., "services_rehab_challenges_*" to "serv_rehab_chal_*". Because my value list very long so I really appreciate any suggestions to do these task. Thanks all!!!!

Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input str32 variable
"services_rehab_challenges_0"  
"services_rehab_challenges_1"  
"services_rehab_challenges_2"  
"services_rehab_challenges_3"  
"services_rehab_challenges_4"  
"services_rehab_challenges_5"  
"services_rehab_challenges_6"  
"services_rehab_challenges_7"  
"services_rehab_challenges_8"  
"services_rehab_challenges_9"  
"services_rehab_challenges_10"
"services_rehab_challenges_11"
"services_rehab_challenges_12"
"services_rehab_challenges__77"
"services_rehab_challenges__88"
"services_rehab_challenges__99"
end