My goal is to get rid of the case distinction, but it outputs:
error: request for member ‘compare’ in ‘thestring.std::basic_string<_CharT, _Traits, _Alloc>::operator[] [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>](i)’, which is of non-class type ‘char’