removed space from end of sentence and the period