Moved text processing functions inside one master function