[fix] normalize whitespace when getting the raw text