Removes unnecessary whitespace and adds period.