find first element string in file