I was wondering how I could remove the last few capital letters and symbol "/" of each observation string in R? For example, if I have data like