parse out client response and normalize query to pass to API call to giphy