seperating searchTerm var from query