solved string reversion problem using recursion + tests