import mir.test: should; " hello world! ".strip(' ') .should == "hello world!"; " hello world!!! ".strip(" !").should == "hello world";
See Implementation