add test for leading and trailing spaces