Awesome, one thing. Your output theAwesomeAndSuperbStealthWarrior should have the first letter be capitalized since it was like that in the original string.
See the challenge requirement:
"The first word within the output should be capitalized only if the original word was capitalized (known as Upper Camel Case, also often referred to as Pascal case)."
Since
split
already usesg
as regex mod... and there is no need to usei
when you are not looking for [a-z|A-Z] chars...Also added some valiations to fix improper output camelCase casing
Awesome, one thing. Your output
theAwesomeAndSuperbStealthWarrior
should have the first letter be capitalized since it was like that in the original string.See the challenge requirement:
"The first word within the output should be capitalized only if the original word was capitalized (known as Upper Camel Case, also often referred to as Pascal case)."
You are correct! here is the revisited version:
darn PascalCase...