For example, assuming a string s is this:
string s
for(int x = 0; x < s.length(); x++)
better than this?:
int length
How efficient do you want to be?
If you don't modify the string inside the loop, the compiler will easily see than the size doesn't change. Don't make it any more complicated than you have to!