Code to reverse text in push format