written crude unit test
test working, code almost working, trailing whitespace problem