Simplified code of translating string into camel case.