Update ContextExtractor.java

added getting tags from search string
added stripping search string from tags