add history substring search