I have this string:
"Test abc test test abc test test test abc test test abc"
Doing:
str = str.replace('abc', '');
seems to only remove the first occurrence of abc in the string above.
How can I replace all …
How do I make the first letter of a string uppercase, but not change the case of any of the other letters?
For example:
"this is a test" -> "This is a test"
"the Eiffel Tower" -> "The …