let prev and next command use history substring