How to get some word on text

example :
blablablaM
blablablaK

anyone know how to get M and K word and store it to value?

thx for helping me

ahh i’m sorry… problem solved with slice