Matt Cain was making his third start since coming off the disabled list with a finger injury and was in a groove, retiring nine of 10 batters. But after striking out Charlie Blackmon with his 36th pitch, ending the third inning, he grabbed his hamstring and was escorted to the trainers' room.