Added ``file2str`` function.
Fixed bug of pattern.
Added ``blank`` function.
Used ``file2list``
Fixed test files' relative path to absolute path and test running file2json.