Properly handles if it starts with a space. It's a little ugly but booleans not yet demonstrated in the book.