searchHelper: Copyedit and slightly adjust code