$mstr =~ s//<\/t>/gsm; # this handles an empty t tag in the xml