Trim away, no problems with doing this in my experiences with Bacopa monnieri. For any stem plant, if you're planning to keep the 'bottoms' planted, trim only 1/3, or at the very most 1/2 of the stem at a time.