remove trailing whitespace
add term and instructor to ElasticSearch data