Removed unused code
Trim sentences before formatting