remove trailing spaces
use "." as punctuation