Fix clean_text for zero-length strings