Works for files and strings