Added text processing utilities