Cutting Text From the End of a Command

@drpeterbatesuk suggested some useful phrases to make matching clearer.