Refactored code in sentence.py.
Added stripping to sentences fix format.