Remove use of std::string::front & back