added word search sanitization