Yankees second baseman Starlin Castro left New York’s game against the Chicago White Sox on Monday because of a strained right hamstring.