String problems added with word reversal