How to reduce bitterness of Basil?
I personally don't use the stems directly, and I suspect that might've been your problem.

As for bitter flavors ... salt will help to mask bitterness (it's considered a 'competitor' against bitterness, not an enhancer), but it's frequently paired with sugar and/or an alternate flavoring to further hide the bitterness.