First, you’ll want to use Element.Name instead of String from Object to get the actual name instead of the stringified element data. Next, you’ll want to use a dictionary for converting specific level names to their abbreviations. You create the dictionary using your known values and then get the matching abbreviations from the dictionary by providing your list of levels.