Be less verbose in text processing script