strip method implemented and some tests for it