script to make text processing easier