Finding all entries of string and printing paths to them