add tests and implementation for string reversal.