add whitespace removal
tests pass
however output is incorrect