Joketext= " ' . $joketext . ' " huh?

Yes they are. Your misunderstanding was due to you looking at a section in the middle of the string ignoring the opening ’