Remove space from end of clipboard

I am selecting a bible reference in Word 2016 Mac and unfortunately Word adds a trailing space at the end of the selection. So when i activate the Services to import the verse from Accordance it fails. This is due to the trailing space (i have tested it and found that the extra space the Word adds is the culprit). I need somehow for KM to be able to remove the trailing space before sending the data (bible ref) to the Service. I have it working except for the trailing space issue. PLEASE can anyone help me!

Hey There,

Look at the Filter Variable or Filter Clipboard actions → Trim Whitespace.

-Chris