fixed bug fix where file data was stripped of whitespace