Hi All,
I have a string called API Definition, need to replace an empty space between API and Definition with underscore
Ex;
Original String:- API Definition
Expected Result:- API_Definition
can anyone suggest for this
Know the answer? Post it. Somebody with the same question will find it here.

Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ronika JencyRank #770 · 3K reputationPosted Aug 21, 2020, 2:51 AM EDT
Harshal LimayeRank #485 · 5.1K reputationPosted Jan 3, 2021, 6:42 AM EST
Mageshwaran RRank #411 · 6.1K reputationPosted Jan 4, 2021, 12:05 AM EST