I want to retrieve a String after last appearance of ~ delimiter. I have whole string like "Attachments:Attachments~Attachment" and I want to take substri