set fileformat to unix and remove additional useless whitespaces.