rm whitespace
methods to get filename from io statements