String reversal problems