Text Preprocessing in Programmable Logic