Combine sugar and water in a medium saucepan over medium-high heat; cook until sugar dissolves. Remove from heat and add remaining ingredients. Allow spices to steep for at least an hour. Strain into a glass jar; cover and store leftover syrup in the fridge.