"""

Jaden Smith, the son of Will Smith, is the star of films such as The Karate Kid (2010) and After Earth (2013). Jaden is also known for some of his philosophy that he delivers via Twitter. When writing on Twitter, he is known for almost always capitalizing every word. For simplicity, you'll have to capitalize each word, check out how contractions are expected to be in the example below.

Your task is to convert strings to how they would be written by Jaden Smith. The strings are actual quotes from Jaden Smith, but they are not capitalized in the same way he originally typed them.

https://www.codewars.com/kata/5390bac347d09b7da40006f6/train/python

"""


def to_jaden_case(string):
    jadeString = string[0].capitalize()
    #If space make next character capital
    i=1
    while i < len(string):
        if string[i] == " ":
            jadeString += " "
            jadeString += string[i+1].capitalize()
            i += 1
        else:
            jadeString += string[i]
        i += 1
    return jadeString

string="test string test"
print(to_jaden_case(string))
print(len(string))
112093e51f5435438c36855999d249ba562afd32
<mask token>

<mask token>


def to_jaden_case(string):
    jadeString = string[0].capitalize()
    i = 1
    while i < len(string):
        if string[i] == ' ':
            jadeString += ' '
            jadeString += string[i + 1].capitalize()
            i += 1
        else:
            jadeString += string[i]
        i += 1
    return jadeString


<mask token>

<mask token>


def to_jaden_case(string):
    jadeString = string[0].capitalize()
    i = 1
    while i < len(string):
        if string[i] == ' ':
            jadeString += ' '
            jadeString += string[i + 1].capitalize()
            i += 1
        else:
            jadeString += string[i]
        i += 1
    return jadeString


<mask token>
print(to_jaden_case(string))
print(len(string))

<mask token>


def to_jaden_case(string):
    jadeString = string[0].capitalize()
    i = 1
    while i < len(string):
        if string[i] == ' ':
            jadeString += ' '
            jadeString += string[i + 1].capitalize()
            i += 1
        else:
            jadeString += string[i]
        i += 1
    return jadeString


string = 'test string test'
print(to_jaden_case(string))
print(len(string))

"""

Jaden Smith, the son of Will Smith, is the star of films such as The Karate Kid (2010) and After Earth (2013). Jaden is also known for some of his philosophy that he delivers via Twitter. When writing on Twitter, he is known for almost always capitalizing every word. For simplicity, you'll have to capitalize each word, check out how contractions are expected to be in the example below.

Your task is to convert strings to how they would be written by Jaden Smith. The strings are actual quotes from Jaden Smith, but they are not capitalized in the same way he originally typed them.

https://www.codewars.com/kata/5390bac347d09b7da40006f6/train/python

"""


def to_jaden_case(string):
    jadeString = string[0].capitalize()
    #If space make next character capital
    i=1
    while i < len(string):
        if string[i] == " ":
            jadeString += " "
            jadeString += string[i+1].capitalize()
            i += 1
        else:
            jadeString += string[i]
        i += 1
    return jadeString

string="test string test"
print(to_jaden_case(string))
print(len(string))