Hi,
if you have "sed" you most probably have "tr" as well.
So why not simply
tr "str1" "\t" < file1.txt > file2.txt
?
wmp