Search should not include trailing space.