Fixed string comparison in addURLTerm method.