solved string and text processing