Reimplemented call to c++11 function std::string::pop_back in Text Control to retain support for older compilers