Replace " by ', remove spare spaces, and fix indentation