Modified TermList to handle a mixed set of comma and space separated term.