Simple to you not simple to me pattern matchin help

hey all, im new and my first question is:

say i have a word "blahblah"

how do i get and replace the last letter of the word with say k, so replace the h with a k.

However you cant just replace the h it has to change the LAST LETTER of the word.

Cheers In advance.
:b: