If for a single capital word I know how to do that but for multiple capital word not sure how to do that.
single word: value.toLowerCase().charAt(0).toUpperCase() + value.toLowerCase().slice(1);
It will change "DONE" to "Done" But if I have "DONE DEAL" it changing to "Done deal" but it should like "Done Deal"