Modification of String::operator=(const String& str) and String::operator+(char c) for a correct use of the capacity