Cleaned up Balanced Delimiter method relying more on the dictionary contents