Add reverse text function