Low tech detection method: copy text to somewhere editable. Put cursor at the start of the text. Press "right" key and hold -- the cursor will run rightwards... but will visibly pause/stagger on invisible spaces. This is more visible with fixed-width font, but variable-width works too.