Add function reverse_text