I have been sitting here for 2 hours trying to figure out this ##!!?!?!? problem

I am VERY VERY stressed and annoyed

I was to retrieve the last character of this string "]2"

HOW do I do it? everytime I do it, I either get an exception or I get the same string returned back to me

string test = data.Substring(data.LastIndexOf("]", data.LastIndexOf("]"), 1));

?!?!?!?!?!!?