added code to reverse a c style string