Add support for the xcmenu clipboard util
Ignore whitespace when checking copy success

Clipboard copy success is tested by pasting the output and checking that
it matches the content we just copied. Some clipboard paste commands may
append whitespace (a newline) when printing out the clipboard contents.