extract specific string from some files