Added getTotalLength method to CharSeqTools