Added test for trailing spaces.