Well, you're close, Sassy. It's spelled Earnest, and is a pun on the word. (Earnest/Ernest)
I thought it was a better known play than it apparently is. It's a farce by Oscar Wilde which I saw many years ago. I think it revolves around a lot of greedy relatives who can come into an inheritance if they can prove they are some guy named Ernest. Something like that, anyway.