I just thought I'd take a shot in the dark about this one. If you didn't want to use trim(), you could try this regular expression:
ereg('(😉[a-zA-z0-9-]+[ ]=[ ][a-zA-z0-9-]+$', $value);
I haven't gotten a chance to test it, but I think it should work. You could use eregi, and change the bounds for the key/value, but I didn't feel like changing it. Hope it works =0