Added history substring search