If I have a string e.g. "XXXX-YYYY-ZZZZZ" and I want to extract YYYY (so between the two "-" as number of carachters may differ). How can this be done?