Added test for double whitespace

Added test for double whitespace and fixed problem areas