Clean file content in file adapters

- Trim lines
- Do not consider file comments (with #)