Accept a string in addition to a file.