 				citation CITED_NAME_CITATION, identification CitTaxa">
 				<cfset basWhere = "#basWhere# AND publication.publication_id = CITED_NAME_CITATION.publication_id (+)
 					AND CITED_NAME_CITATION.identification_id = CitTaxa.identification_id (+)
-					AND upper(CitTaxa.scientific_name) LIKE '%#ucase(cited_Sci_Name)#%'">
+					AND upper(CitTaxa.scientific_name) LIKE '%#trim(ucase(cited_Sci_Name))#%'">
 		</cfif>
 		<cfif isdefined("proj_pub_remark") AND len(proj_pub_remark) gt 0>
 			<cfset go="yes">
-			<cfset basWhere = "#basWhere# AND upper(PUBLICATION_REMARKS) like '%#escapeQuotes(ucase(proj_pub_remark))#%'">
+			<cfset basWhere = "#basWhere# AND upper(PUBLICATION_REMARKS) like '%#trim(escapeQuotes(ucase(proj_pub_remark)))#%'">
 		</cfif>
 		<cfif go is "no">
 			<cfset basWhere = "#basWhere# AND 1=2">

						'%#escapeQuotes(ucase(right(publication_remarks,len(publication_remarks)-1)))#%')
				">
			<cfelse>
				<cfset basWhere = "#basWhere# AND upper(publication.publication_remarks) like '%#escapeQuotes(ucase(publication_remarks))#%' ">
			</cfif>
		</cfif>
		<cfif isdefined("doi") AND len(doi) gt 0>

				<cfset basFrom = "#basFrom#,agent_name">
				<cfset basWhere = "#basWhere# AND pubAgentSrch.agent_id=agent_name.agent_id">
			</cfif>
			<cfset basWhere = "#basWhere# AND UPPER(agent_name.agent_name) LIKE '%#trim(ucase(author)#)%'">
		</cfif>
		<cfif isdefined("year") AND isnumeric(year)>
			<cfset go="yes">
