Removes extra spaces from commit message