```if-not:swift
Write simple .camelCase method (`camel_case` function in PHP, `CamelCase` in C# or `camelCase` in Java) for strings. All words must have their first letter capitalized without spaces.
```
```if:swift
Write a simple `camelCase` function for strings. All words must have their first letter capitalized and all spaces removed.
```
For instance:

```python
camelcase("hello case") => HelloCase
camelcase("camel case word") => CamelCaseWord
```
```c#
using Kata;

"hello case".CamelCase(); // => "HelloCase"
"camel case word".CamelCase(); // => "CamelCaseWord"
```

Don't forget to rate this kata! Thanks :)

Difficulty: introductory

Starter code:

def camel_case(string):
	

Solutions:
def camel_case(string):
    return string.title().replace(" ", "")

def camel_case(s):
    return s.title().replace(' ','')

def camel_case(string):
    return ''.join([i.capitalize() for i in string.split()])

def camel_case(string):
    if len(string) == 0: return ""
    str_list = list(string)
    space_ids = [index for index, char in enumerate(str_list) if char == " " and index < len(str_list) - 1 ]
    for index in space_ids:
        str_list[index + 1] = str_list[index + 1].upper()
    str_list[0] = str_list[0].upper()
    changed_str = "".join(str_list)
    changed_str = changed_str.replace(" ", "")
    return changed_str

def camel_case(string):
    return ''.join((string.title()).split())
    #your code here


def camel_case(s):
    #your code here
    return ''.join(s.title().split())

def camel_case(s):
    return s.strip().title().replace(' ', '')

def camel_case(string):
    #a = [string.split()]
    a = list(string)
    for i in range(0, len(a)):
        if i==0 or a[i-1]==' ':
            a[i] = a[i].upper()
    return ''.join(a).replace(' ','')

def camel_case(string):
    words=string.split()
    answer=""
    for capped in words:
        
        answer+=capped.capitalize()
    return answer

camel_case=lambda s:s.title().replace(' ','')