Sensex scores a hat-trick as investors keep faith