src: rev: improved string reversing