remove on certain file-types trailing white spaces and empty lines