Add test for chopString

chopString works as expected
more function needed to built to complete chopString