Trim spaces into file.