Update TextTools.cc

Bug fix issued at https://github.com/Gnurou/tagainijisho/issues/77