generate bwt from original string