There are several ways of strumming triplets. Each one is useful in particular musical situations. The most common way is to use all downstrokes of the pick. Try this method first.
Once you can play this example evenly, try using alternate strumming. This means that beats 2 and 4 will begin with an upstroke. To be sure you keep the correct rhythm, count out loud as you play and tap your foot on each beat.
Another useful technique is to use an upstroke on the middle part of the triplet only. This means you will play each new beat with a downstroke. Once again, tap your foot on each beat and count out loud as you play.