initial string reversal