Array based text processor