rewrote testshape to accept string