Ben Stokes pleased with his performance against South Africa