I'm trying to test if a character in a string is a space, and I'm getting extremely frustrated:

```
string my_string;
cin >> my_string;
for (int i = 0; i < my_string.length(); i++)
    {
        if (my_string[i] == ' ') // this never becomes true...
        {
            cout << "this text should pop, but never does" << endl;
        }
    }

```

I'm not getting any errors and I've looked online, but people on different forums say this is how to test for a space. Uh.