Text reverser that preserves tabs/newline positioning