update documentation for reversing a string