Update spacing on writeFile function