It was comparing with the capacity method, insteda of capacity_ attribute
Comparasion with int and std::string::npos. Since npos is an size_t, the compare will always be false
Removed dead code