This BitBar plugin manipulates text directly in the clipboard.
Install BitBar, if you haven’t already, and then install the Clipboard Bar plugin from GitHub or from here.
Copy some text. Then when you select one of the, hopefully self-explanatory, options from the plugin’s menu whatever’s in the clipboard will be changed accordingly.
For example, Trim Whitespace will remove blanks from the beginning & end of the text.
The altered text is then ready to be pasted.
Queries or issues?
Let me know on GitHub or send me some feedback.
Other BitBar Plugins
Cricket Bar, Password Bar