Removed extra space at end of index name when searching single index.