remove truncate whitespace automatically