adding test around generateFilesFromString, fixed but where
trimAllWhitespace should have been trimWhitespace