fix text with whitespaces.