Added stripspaces function and corresponding menu entry