added more flexibility to the StringTxt class