remove word separators
remove trailing spaces