handle non existing files and strings with no keywords