Removed extra whitespace in list when searching by type