If you want Not_An_SMS
to return notAnSms
, you have to stop using the word.title()
function, and instead just uppercase/lowercase the first letter of each word, but preserve the case of the others.
That will still mean that SMS_status
will return sMSStatus
but I guess that can be considered an exception. If you want to fix that you'll need to have a dictionary of words so you can figure out if something is a word or not. And that's certainly not withing the scope of the competition.