What's the power source specifically? (Brand and model#.)
Some supplies are well-regulated.
Others are not regulated, and might even put out 5V
AC. LEDs run on DC only. They can tolerate a little bit of reverse-polarity voltage, but they're meant to be run on steady DC. Some diode manufacturers will say that up to a certain voltage is fine in reverse; others will just say "Don't reverse the voltage on these."
If it's regulated, one option is to just use a resistor in series. IR LEDs usually have a lower forward voltage than other visible-light LEDs. You might be looking at around 1.5V per LED, depending on the model. (Which IR LED are you using?)
If that's the case:
5volts - (3*1.5volts) = 0.5V.
If you want to drive them at...let's say 10mA.
V=IR
R=V/I
R = 0.5/0.010
R = 50 ohms.
However, with a simple resistor, the amount of current going through the LED string can change slightly. If it's sized properly though, the change shouldn't be much concern, especially with a string of only 3 LEDs.
A CL2 is another option.
It will automatically adjust to provide a constant 20mA through the LEDs, acting like a dynamic "smart" resistor.
When an LED turns on and the emitter starts to heat up, the forward voltage goes down: It doesn't take as much voltage to push current through it.
So at room temperature, it might take 1.5V to push 20mA through the LED.
But when the die gets hot, it might take only 1.3V to push 20mA through the LED. If you're still providing it with 1.5V, you will get more current going through it. That in turn produces more heat. That's why it's not a good idea to run LEDs without a resistor: Thermal runaway, which can destroy the LED.
A resistor is usually fine though. Something like the CL2 is used if you don't know the process for sizing resistors, or if you've got a poorly-regulated power supply.
If you have a power source that's
only a step-down transformer and it's putting out 5V
AC, then you're going to need more parts: Diodes, maybe a bridge rectifier, and maybe some capacitors if you don't want it to flicker.