Trim the criteria wehn searching for an entry of a creature/gameobject/etc. Prevents issues where searching for, for example, a creature name and having a whitespace right after it would return no results.